Model.grouppreviewunused#

Model.grouppreviewunused(collection_set, displayed)#

Identifies the unused elements within a group.

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

  • displayed (int) –

    Searches groups containing unused elements:

    0 - Searches all groups

    1 - Searches only displayed groups

Example#

Create a group with main elements with IDs 124, 158, 246 and 366 and secondary elements with IDs 130, 136 and 364, and review the selected elements#
import hm
import hm.entities as ent

model = hm.Model()

elems1 = hm.Collection(model, ent.Element, [124,158,246,366])
elems2 = hm.Collection(model, ent.Element, [130, 136, 364])
collectionSet = hm.CollectionSet(model)
collectionSet.set(elems1)
collectionSet.set(elems2)

model.grouppreviewunused(collection_set=collectionSet, displayed=0)