Model.reverseview#

Model.reverseview(name, entity_type_id)#

Reverses the display with respect to a view saved using Model.saveviewmask().

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

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

Example#

Reverse 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")

# Reverse components in View2
model.reverseview(name="View2", entity_type_id=result.entityTypeID)