Model.tablecreate#
- Model.tablecreate(name, color, config, string_array, number_of_rows)#
Adds a row of data to the bottom of a table.
- Parameters:
name (hwString) – The name of the table to create.
color (unsigned char) – The color of the table. Valid values are 1-64.
config (int) – Reserved for future use. Must be set to 1.
string_array (hwStringList) – The string array that contains the data type of each column. Valid column data types are: bool, hwString, int, unsigned int, float, double, hwTriple, HM, Entity, types (e.g. elements, plies, components, etc…). The length of the list should be equal to the number of columns in the table.
number_of_rows (unsigned int) – Integer indicating the number of rows to pre-reserve in the table.
Example#
Create a table named “ table1 “ with color 3 , 4 columns of data ( integer , double , string , elements ) , and no pre - reserved rows#import hm import hm.entities as ent model = hm.Model() model.tablecreate( name="table1", color=3, config=1, string_array=["INT", "DOUBLE", "STRING", "elements"], number_of_rows=0, )