Model.showentity_byname#

Model.showentity_byname(entity_type, entity_name, showcomps=False, elements_off=False, geometry_off=False)#

Turns on the display of an entity, by providing the entity’s name.

Parameters:
  • entity_type (EntityFullType) – The type of entity to display.

  • entity_name (hwString) – The name of the entity to display

  • showcomps (bool) – This indicates that components in which elements/geometry are referred will also be shown when you show elements/geometry. If not provided, only specified elements/geometry are shown.

  • elements_off (bool) – This indicates that elements in the specified collectors should not be considered. If not provided, the default is to consider elements in the specified collectors.

  • geometry_off (bool) – This indicates that geometry in the specified collectors should not be considered. If not provided, the default is to consider geometry in the specified collectors.

Example#

Show the geometry and elements for component with name “My_comp”#
import hm
import hm.entities as ent

model = hm.Model()

model.showentity_byname(
    entity_name=ent.Component, entity_name="My_comp", geometry_off=True
)