Model.isolateonlyentity#
- Model.isolateonlyentity(entity, 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 (Entity) – The object describing 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 ID 3#import hm import hm.entities as ent model = hm.Model() model.isolateonlyentity(entity=ent.Component(model, 3))
Isolate only elements for component with ID 3#import hm import hm.entities as ent model = hm.Model() model.isolateonlyentity(entity=ent.Component(model, 3), geometry_off=True)