Model.displayelementsbypropertybymark#

Model.displayelementsbypropertybymark(collection, mode, type)#

Displays elements that have either a direct, indirect or mixed property assignment for a selection of properties.

Parameters:
  • collection (Collection) – The collection containing the property entities to consider.

  • mode (hwString) –

    The mode to control the element display. Valid values are:

    on - Turn on the elements.

    off - Turn off the elements.

    reverse - Reverse the display of the elements (if off, turn on and if on, turn off).

    isolate - Isolate the display of the elements (turn off all others).

  • type (int) –

    The property assignment type to use for selecting the elements to display. Valid values are:

    0 - Direct property assignment.

    1 - Indirect property assignment.

    2 - Any property assignment.

Example#

Turn on the display of all elements with a direct property assignment for properties with IDs 1 - 4#
import hm
import hm.entities as ent

model = hm.Model()

model.displayelementsbypropertybymark(
    collection=hm.Collection(model, ent.Property, [1, 2, 3, 4]), mode="on", type=0
)