Home/ Reference/ Align / Distribute

shape.Rotate(Angle)

Rotates around the rotation center, in degrees, counter-clockwise positive. Around the object center by default.

Signature

shape.Rotate(Angle)

Notes

Rotates around the rotation center, in degrees, counter-clockwise positive. Around the object center by default.

Python example (runnable)

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

print("Angle before: ", shape.RotationAngle)
shape.Rotate(45)                                    # 45 degrees counter-clockwise
print("Angle after: ", shape.RotationAngle)

shape.Rotate(-45)                                   # rotate it back

About this section: Align / Distribute

Align / Distribute — align, distribute and transform.

Other entries in this section