transform
Move or rotate an existing FreeCAD object in place by applying a translation vector or axis-angle rotation, replacing manual Placement edits without creating a new handle.
Instructions
Move and/or rotate an existing object in place — first-class replacement for hand-poking an object's Placement via set_property.
handle: object to move (any object with a Placement: primitive, body, feature). translate: [x, y, z] translation in mm (default no translation). rotate_axis: rotation axis as a 3-vector [x, y, z] (need not be unit length; default [0, 0, 1], the Z axis). angle: rotation about rotate_axis in DEGREES (default 0 = no rotation). relative: True (default) composes this move ONTO the object's current placement (incremental); False sets it as the ABSOLUTE placement, discarding the object's prior placement.
The same object is moved — NO new handle is created. The rotation is applied about the object's local origin (combine with translate to pivot elsewhere).
Returns {handle, name, placement: {base:[x,y,z] mm, axis:[x,y,z], angle_deg}} describing the object's resulting placement.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| angle | No | ||
| handle | Yes | ||
| relative | No | ||
| translate | No | ||
| rotate_axis | No |