Model.realizeengineeringentities#

Model.realizeengineeringentities(collection, reserved)#

Realize engineering entities.

Parameters:
  • collection (Collection) – The collection containing the entities ro realize.

  • reserved (int) – Reserved for future use. Must be set to 0.

Example#

Realize the mass 0D entities ( config=1 ) with IDs 1 and 2 in Optistruct profile#
import hm
import hm.entities as ent

model = hm.Model()

# Creating the collection that contains the masses with IDs 1,2
elemlist_all = [el for el in hm.Collection(model, ent.Element) if el.config == 1]
elemlist = [el for el in elemlist_all if el.id == 1 or el.id == 2]
element_collection = hm.Collection(elemlist)

model.realizeengineeringentities(collection=element_collection, reserved=0)