Model.displayelementsbyproperty#
- Model.displayelementsbyproperty(mode, type)#
Controls the display of elements that have either a direct, indirect or mixed property assignment.
- Parameters:
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#import hm import hm.entities as ent model = hm.Model() model.displayelementsbyproperty(mode="on", type=0)