constrain_faces
Constrains two assembly components by selected faces or origin geometry using mate, flush, or angle relations in the active top assembly, and reports other components moved by the constraint.
Instructions
Constrain two components by faces (refs from assembly_faces) or origin geometry ("Sub:1/Part:1#XY", "#X", "#ORIGIN") — anywhere in the assembly, sub-assemblies too. The constraint goes into the active (top) assembly.
Says which OTHER components the constraint moved — a constraint can drag parts through others you didn't mean to touch.
Args: a, b: Refs. a is the one meant to move. kind: "mate" (faces against each other / axes in line), "flush" (faces the same way, side by side) or "angle". offset: mm for mate / flush. Its sign is easy to get wrong — give a_at too. angle: Degrees for kind="angle". a_at: Where a's face must end up, e.g. {"Z": 182.5}. If it lands elsewhere, the offset is tried with the other sign.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| a | Yes | ||
| b | Yes | ||
| a_at | No | ||
| kind | No | mate | |
| angle | No | ||
| offset | No | ||
| instance | No | Which connected Inventor to use (list_instances). Leave empty when only one is connected. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |