Model.tableupdaterow#

Model.tableupdaterow(name, string_array, row_index)#

Updates the values in a row of a table.

Parameters:
  • name (hwString) – The name of the table to update.

  • string_array (hwStringList) – The string array that contains the row data to update. The length should be equal to the number of columns in the table.

  • row_index (int) – The index of the row to update. Tables are indexed starting from 1 (1 to n rows).

Example#

Update row 3 of “ table1 “ which has 7 columns with data types ( integer , string , double , elements , integer , double , properties )#
import hm
import hm.entities as ent

model = hm.Model()

model.tableupdaterow(
    name="table1",
    string_array=["1", "abc", "4.567", "500", "10", "3.14159", "100"],
    row_index=3,
)