Set Joint Value
set_joint_valueDrive a Fusion 360 joint to a target angle or slide distance and confirm the value is retained; avoid recomputing after the call because Fusion resets joint values on computeAll.
Instructions
Drive a joint to a value and confirm Fusion kept it. Angles are in degrees unless units='rad'; slide values are lengths in cm and are never converted. Works on as-built joints unless as_built=False. Fusion resets joint values to zero on the next design.computeAll(), so avoid recomputing after this call - the command itself does not.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| units | No | Units for angle values only; slide values are always cm. | deg |
| value | Yes | Target value: degrees for rotations (or radians with units='rad'), centimetres for slide values. | |
| as_built | No | Search as-built joints (True) or regular joints (False). | |
| joint_name | No | Joint to drive. Omit to use joint_index. | |
| value_kind | No | Which value to drive on joints carrying more than one. Defaults to rotation (pitch for ball joints). Use primary_slide/secondary_slide for planar and pitch/yaw/roll for ball. | |
| joint_index | No | Index into the joint collection when joint_name is omitted. |