Model.swapcontactmainsecondary#
- Model.swapcontactmainsecondary(collection)#
Swaps the main and secondary entities of groups.
Note
In OptiStruct, if secondary is a collection of nodes, on swapping it is converted to a collection of elements.
- Parameters:
collection (Collection) – The collection containing the group entities to update.
Example#
Swap main and secondary entities of groups with IDs 1 and 2#import hm import hm.entities as ent model = hm.Model() model.swapcontactmainsecondary(collection=hm.Collection(model, ent.Group, [1, 2]))