Model.hm_tabletomark#

Model.hm_tabletomark(tableName)#

Appends the entity IDs stored in table_name to collection mark_id. Valid mark_ids are 1 and 2. Tables are not stored within a database (.hm file). When the current model is deleted or a new model is loaded, all tables are cleared. If a table contains an entity that is subsequently deleted, the entity is removed from the table. Renumbering does not modify the entity IDs stored in the table.

Parameters:

tableName (hwString) – nan

Example#

Put the elements from table elem_table on element collection with ID 1#
import hm
import hm.entities as ent

model = hm.Model()

model.hm_tabletomark(tableName="elem_table")