Model.barelementrotatebyangle#

Model.barelementrotatebyangle(collection, angle)#

Rotate bar elements along their respective X-axis using an input angle.

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

  • angle (double) – The angle to rotate, in degrees.

Example#

Rotate elements with IDs 1-4 by 60.0 degrees#
import hm
import hm.entities as ent

model = hm.Model()

elems = hm.Collection(model, ent.Element, list(range(1, 5)))

model.barelementrotatebyangle(
    collection=elems, angle=60.0
)