Model.duplicateandreflectskeletonentities#

Model.duplicateandreflectskeletonentities(collection, symmetry_entity, duplicatemembersections=False)#

Duplicates member joints, members and member panels and reflects them along the symmetry plane.

Parameters:
  • collection (Collection) – The collection containing the entities to duplicate.

  • symmetry_entity (Entity) – The object describing the plane entity along which the elements must be reflected.

  • duplicatemembersections (bool) – The flag to indicate if member sections of the skeleton entities must be duplicated. Valid values are False and True. Default value is False.

Examples#

Duplicate the member joint with ID 1 along symmetry plane 1#
import hm
import hm.entities as ent

model = hm.Model()

model.duplicateandreflectskeletonentities(
    collection=hm.Collection(model, ent.Memberjoint, [1]),
    symmetryid=ent.Symmetry(model, 1),
    duplicatemembersections=False,
)
Duplicate and reflect all members along symmetry plane with ID 2 and duplicate the member sections associated as well . This also duplicates and reflects the associated member joints#
import hm
import hm.entities as ent

model = hm.Model()

model.duplicateandreflectskeletonentities(
    collection=hm.Collection(model, ent.Member),
    symmetryid=ent.Symmetry(model, 2),
    duplicatemembersections=True,
)
Duplicate and reflect the member panel with ID 2 along symmetry plane with ID 1 . This also duplicates and reflects the associated member joints and members#
import hm
import hm.entities as ent

model = hm.Model()

model.duplicateandreflectskeletonentities(
    collection=hm.Collection(model, ent.Memberpanel, [2]),
    symmetryid=ent.Symmetry(model, 1),
    duplicatemembersections=True,
)