Model.rigidlinkupdatecalcinodebycollector#

Model.rigidlinkupdatecalcinodebycollector(element_entity, collection_set, entity_type)#

Updates the rigid link by calculating the independent node based on selection of dependent nodes defined by comps, mats, assems, props sets and nodes.

Parameters:
  • element_entity (Entity) – The object describing the rigid element entity.

  • collection_set (CollectionSet) – The set of collections containing possibly multiple type of entities.

  • entity_type (EntityFullType) – The type of entity for dependent nodes. Valid entity types are component, material, part, property, set and node.

Example#

Update a rigid link element with ID 7 by select dependent node specified by components with IDs 1 and 2 put on a collection set :#
import hm
import hm.entities as ent

model = hm.Model()

# Creating a collection that contains the components
component_collection = hm.Collection(model, ent.Component, [1, 2])

# Creating the collection set that contains the collection with the components
collection_set_comps = hm.CollectionSet(model)
collection_set_comps.set(component_collection)


model.rigidlinkupdatecalcinodebycollector(
    element_entity=ent.Element(model, 7),
    collection_set=collection_set_comps,
    entity_type=ent.Component,
)