Model.isolateonlyentitybymark#

Model.isolateonlyentitybymark(collection_set, elements_off=False, geometry_off=False, showcomps=False)#

Turns on the display of a collection of entities and turns off the display of all others across types.

Parameters:
  • collection_set (CollectionSet) – The set of collections containing possibly multiple type of entities.

  • 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.

  • 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.

Examples#

Isolate only geometry and elements for components with ID 1 - 3#
import hm
import hm.entities as ent

model = hm.Model()

comp_collection = hm.Collection(model, ent.Component, [1, 2, 3])
collection_set = hm.CollectionSet(model)
collection_set.set(comp_collection)
Isolate only all components and load collectors , consider only elements#
import hm
import hm.entities as ent

model = hm.Model()

comp_collection = hm.Collection(model, ent.Component)
loadcols_collection = hm.Collection(model, ent.Loadcol)
collection_set = hm.CollectionSet(model)
collection_set.set(comp_collection)
collection_set.set(loadcols_collection)

model.isolateonlyentitybymark(collection_set=collection_set, geometry_off=True)