Model.entitydisplaywithattached#
- Model.entitydisplaywithattached(collection, attached_entity_type, display_flag=0)#
Isolates an entity and its attached entities.
- Parameters:
collection (Collection) –
The collection containing the entities to isolate.
Currently only valid for groups.
Supported group configs:
1 - elem and elem (Customized for Abaqus to get the surface from attributes)
2 - node and elem
3 - elem
4 - node (elements/components attached to node is shown)
Supported group definitions:
0 - entities
1 - components
4 - sets
5 - contactsurfs
attached_entity_type (EntityFullType) – Valid values are components, elements and groups.
display_flag (int) –
0 - Show
1 - Isolate
Examples#
Show the components attached to group with ID 1#import hm import hm.entities as ent model = hm.Model() group = hm.Collection(model, ent.Group, [1]) model.entitydisplaywithattached(collection=group, attached_entity_type=ent.Component, display_flag=0 )
Isolate the components attached to groups with IDs 1 and 10#import hm import hm.entities as ent model = hm.Model() group = hm.Collection(model, ent.Group, [1, 10]) model.entitydisplaywithattached(collection=group, attached_entity_type=ent.Component, display_flag=1 )
Show the elements attached to group with ID 1#import hm import hm.entities as ent model = hm.Model() group = hm.Collection(model, ent.Group, [1 ]) model.entitydisplaywithattached(collection=group, attached_entity_type=ent.Element, display_flag=0 )
Isolate the elements attached to groups with IDs 1 and 10#import hm import hm.entities as ent model = hm.Model() group = hm.Collection(model, ent.Group, [1, 10]) model.entitydisplaywithattached(collection=group, attached_entity_type=ent.Element, display_flag=1 )