Model.hideentitybymark#

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

Turns off the display of a mark of entities.

Parameters:
  • collection_set (CollectionSet) – The set of collections containing possibly multiple type of entities to turn off the display. All entities with a display state on the collection_set, regardless of entity type, are considered.

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

Hide geometry and elements for components with IDs 1-3#
import hm
import hm.entities as ent

model = hm.Model()

# Creating the collection set
comps_collection = hm.Collection(model, ent.Component, list(range(1, 4)))

ent_collectionset = hm.CollectionSet(model)
ent_collectionset.set(comps_collection)

model.hideentitybymark(collection_set=ent_collectionset)
Hide all components and load collectors, consider only elements#
import hm
import hm.entities as ent

model = hm.Model()
# Creating the collection set
comps_collection = hm.Collection(model, ent.Component)
loadcols_collection = hm.Collection(model,ent.Loadcol)

ent_collectionset = hm.CollectionSet(model)
ent_collectionset.set(comps_collection)
ent_collectionset.set(loadcols_collection)

model.hideentitybymark(collection_set=ent_collectionset,geometry_off=True)