Home/ Reference/ Geometry & Transform

shape.Rotate(angle)

Rotates by a relative angle.

Signature

shape.Rotate(angle)

Notes

Rotates by a relative angle.

Python example (runnable)

Requires pywin32. The example assumes app / doc / page / layer are already connected. See Connection & Init
Python
shape = app.ActiveSelectionRange(1)

shape.Rotate(30)                           # add 30 degrees to the current rotation
print("Angle: ", shape.RotationAngle)

shape.Rotate(-30)                          # rotate it back
print("After restore: ", shape.RotationAngle)

About this section: Geometry & Transform

Geometry & Transform — position, size and rotation of shapes.

Other entries in this section