Model.displaycollectorwithfilter#
- Model.displaycollectorwithfilter(entity_type, mode, name, elements, geometry)#
Changes the active state of a collector using the menu filter.
- Parameters:
entity_type (EntityFullType) – The collector type. Valid types for this function are, Components, Loadcols, Systcols, Vectorcols.
mode (hwString) –
The mode being performed, defined by the following:
on - All collectors are turned on.
all - All collectors are turned on.
off - All collectors are turned off.
none - All collectors are turned off.
toggle - All collectors are toggled (visible become invisible and vice-versa).
reverse - All collectors are toggled (visible become invisible and vice-versa).
name (hwString) – The collector name to be used in the above functions. This parameter may be left blank, if
modeis set to all, none, or toggle.elements (int) –
Indicates if elements within components are to be turned on or off.
0 - No
1 - Yes
geometry (int) –
Indicates if geometry within components is to be turned on or off.
0 - No
1 - Yes
Example#
Turn on the elements and geometry on in component named “ fender “#import hm import hm.entities as ent model = hm.Model() model.displaycollectorwithfilter( entity_type=ent.Component, mode="on", name="fender", elements=1, geometry=1 )