Model.rlinkcalcinodeandcreateforcollector#

Model.rlinkcalcinodeandcreateforcollector(collection, dof)#

Creates the rigid link by calculating the independent node based on selection of dependent nodes defined by collection. The supported collection of entities are components, materials, parts, properties and sets.

Parameters:
  • collection (Collection) – The collection containing the entities that the dependent nodes are based on.

  • dof (hwBoolList) – The degree of freedom for which the element is active (True or False in any of the 6 degrees of freedom).

Example#

Create a rigid link element by select dependent node specified by components with ID 1 and 2 with all degrees of freedom active#
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])

model.rlinkcalcinodeandcreateforcollector(
    collection=component_collection, dof=[True, True, True, True, True, True]
)