Model.hwCfdSceneReverseAll#
- Model.hwCfdSceneReverseAll(entity_type, consider_geom=1, consider_elems=1)#
This function is used to reverse the display of a mark of entities of a given entity type. This should be used in conjunction with the
Model.hwCfdSceneShowHideIsolateEntity()andModel.hwCfdSceneShowAll()functions. This function is valid only for the CFD profile.- Parameters:
entity_type (EntityFullType) – The type of entity to modify. Valid entitiy type 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)
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()