Model.admasconnectivityupdatemultentselectwithvisnod#
- Model.admasconnectivityupdatemultentselectwithvisnod(mass_elem_entity, collection, additional_node_collection, vis_node_entity)#
Updates mass elements. A visualization node is used when updating and the number of selected entities is greater than one. This is because a set is automatically created from those entities and attached to the mass element.
- Parameters:
mass_elem_entity (Entity) – The object describing the mass element to update.
collection (Collection) – The collection of entities containing the nodes which the mass element will be updated with. Valid entity types are components, materials, blocks, properties, sets and nodes.
additional_node_collection (Collection) – The collection containing any additional nodes.
vis_node_entity (Entity) – The visualization node entity.
Example#
Update mass element with ID 100 , using components with IDs 1 - 3 and visualization node with ID 50#import hm import hm.entities as ent model = hm.Model() comps = hm.Collection(model,ent.Component,[1,2,3]) model.admasconnectivityupdatemultentselectwithvisnod( mass_elem_entity=ent.Element(model,100), collection=comps, additional_node_collection=hm.Collection(model,ent.Node,populate=False), vis_node_entity=ent.Node(model,50) )