Rotate¶
In one sentence: Rotates or copies selected objects by an angle around a centre point, with the rotation axis perpendicular to the working plane.
Overview¶
Workbench: Draft
Menu: Draft → Modification → Rotate
Command: Draft_Rotate
Step-by-step¶
- Select the objects.
- Activate Draft → Modification → Rotate.
- Pick the centre of rotation.
- Pick a point to set the reference direction (angle = 0°).
- Pick a point to set the rotation angle (or type a value).
Python API¶
import Draft
obj = App.ActiveDocument.getObject("Wire")
Draft.rotate(
[obj],
angle=45,
center=App.Vector(0, 0, 0),
axis=App.Vector(0, 0, 1),
copy=False
)
App.ActiveDocument.recompute()
See also¶
- Move — translate objects
- Array Polar — create a ring of rotated copies
- Draft Workbench — workbench overview