assembly_create_joint_origin
Create reusable joint origins as snap points stored in the owning component, so they move with the part and can be referenced by assembly joints.
Instructions
Create a joint origin: a reusable snap point for joints, stored in the component that owns the geometry (so it moves with the part). Geometry refs seen through an occurrence ('@Lid:1') are fine: the origin is still created in component Lid. Use it later as {"kind": "joint_origin", "entity": } in assembly_create_joint.
Returns {"joint_origin": {"ref" (in the occurrence context, '@', when the component has one), "native_ref" (inside the component), "name", "component": "component:"}}.
Example: assembly_create_joint_origin(geometry={"kind": "planar_face", "entity": "Fc=@Lid:1", "key_point": "center"}, offset_mm=[0, 0, 5]) -> {"joint_origin": {"ref": "Jo=@Lid:1", "native_ref": "Jo=", "name": "Joint Origin1", "component": "component:Lid"}}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| flip | No | Flip the origin's Z axis | |
| name | No | Joint origin name | |
| angle | No | Rotation about the origin's Z: degrees or expression | |
| geometry | Yes | Where the origin snaps (kind joint_origin refused) | |
| offset_mm | No | [x, y, z] offset of the origin along its own axes: mm numbers or Fusion expressions |