Model.isolateonlyentity_byname#
- Model.isolateonlyentity_byname(entity_type, entity_name, showcomps=False, elements_off=False, geometry_off=False)#
Turns on the display of an entity and turns off the display of all others across types.
- 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.
Examples#
Isolate only geometry and elements for component with name “ MyComponent “#import hm import hm.entities as ent model = hm.Model() model.isolateonlyentity_byname(entity_type=ent.Component, entity_name="MyComponent")
Isolate only elements for component with name “ MyComponent “#import hm import hm.entities as ent model = hm.Model() model.isolateonlyentity_byname( entity_type=ent.Component, entity_name="MyComponent", geometry_off=True )