Add Joint
add_jointCreates a joint between two components using paired faces as joint geometry; use it when components need positioning, as the joint moves them into coincidence.
Instructions
Add a joint between two components using a pair of faces as joint geometry. face_one/face_two are mandatory: a joint cannot be built from component origins, because a bare point carries no component association. Pass a cylindrical face on each side (see get_object_info for the face indices) - for a hinge that is the knuckle bore on each leaf. NOTE: creating a joint MOVES the components so the joint geometry becomes coincident - use create_as_built_joint when the parts are already positioned.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| axis | No | Rotation/slide axis for revolute, slider and cylindrical; primary direction for pin_slot, planar and ball. | x |
| body_one | No | Body inside component_one carrying the joint geometry. Omit when the component holds exactly one body. | |
| body_two | No | Body inside component_two carrying the joint geometry. Omit when the component holds exactly one body. | |
| face_one | Yes | Face index on that body (cylindrical faces work best). | |
| face_two | Yes | Face index on that body (cylindrical faces work best). | |
| quadrant | No | Angular position of the joint origin on a cylindrical face. | middle |
| key_point | No | Axial position of the joint origin on a cylindrical face. `end` is the only value that produced a valid joint on Fusion 2705; others raise Invalid parameter height or InternalValidationError. | end |
| joint_type | No | rigid | |
| second_axis | No | Secondary direction for pin_slot and ball. Defaults to an axis perpendicular to `axis`. For ball joints Fusion takes (pitch, yaw) and rejects a pitch parallel to the joint axis, so the perpendicular one is sent first. | |
| component_one | Yes | ||
| component_two | Yes |