Model.hwCfdSceneShowHideIsolateEntity#
- Model.hwCfdSceneShowHideIsolateEntity(function, collection, consider_geom=1, consider_elems=1, unhighlight=1)#
This function is used to manage the display of a collection of entities with an additional ability to show/hide the surfaces attached to the solid. This should be used in conjunction with the
Model.hwCfdSceneShowHideIsolateEntity()andModel.hwCfdSceneShowAll()functions. This function is valid only for the CFD profile.- Parameters:
function (hwString) –
The string defining the operation to be performed on the collection of supported entities. Valid values are:
hide - Turn off the display of the entities on the collection. If the selection filter is solid, the hidden surfaces are shown in transparent mode.
isolate - Turn off the display of all the entities and only turn on the display of the entities on collection.
reverse - Turn off all display of the entities on collection and turn on the display of hidden entities of the same entity type.
show - Turn on the display of the entities on collection.
collection (Collection) – The collection containing the entities to modify. Valid entities are parts, regions, surfaces and solids.
consider_geom (int) –
0 - Do not consider the associated geometry
1 - Consider the associated geometry. (default)
consider_elems (int) –
0 - Do not consider the associated elements
1 - Consider the associated elements. (default)
unhighlight (int) –
0 - Do not remove highlighting
1 - Remove highlighting. (default)
Example#
Hiding surfaces with IDs 1-10, reversing the display, then showing all entities#import hm import hm.entities as ent model = hm.Model() surf_col = hm.Collection(model,ent.Surface,list(range(1,11))) model.hwCfdSceneShowHideIsolateEntity(function="hide",collection=surf_col) model.hwCfdSceneReverseAll(entity_type=ent.Surface) model.hwCfdSceneShowAll()