Model.showview#

Model.showview(name, entity_type_id)#

Shows the entities with respect to a view saved using Model.saveviewmask().

Parameters:
  • name (hwString) – The name of the view to show.

  • entity_type_id (int) – The entity type ID to show.

Example#

Show the components in view “View2”#
import hm
import hm.entities as ent

model = hm.Model()

# Query the components entity type ID through the hm_getentitytype function
_, result = model.hm_getentitytype(entity_type="components")

# Show components in View2
model.showview(name="View2", entity_type_id=result.entityTypeID)