constrain
Assemble two components using origin geometry to create parametric mates, flush fits, or angle relations that survive part edits when face topology changes.
Instructions
Constrain two components by their ORIGIN geometry — the parametric way to assemble. Origin constraints survive part edits; face picks break when topology renumbers.
Args: occurrence1: Index of the first component (see list_occurrences). geometry1: "XY", "XZ", "YZ", "X", "Y", "Z" or "ORIGIN". occurrence2: Index of the second component. geometry2: Same options as geometry1. kind: "mate" (planes face each other / axes collinear), "flush" (planes point the same way) or "angle". offset: Offset in mm for mate/flush. angle: Angle in degrees for kind="angle".
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | mate | |
| angle | No | ||
| offset | No | ||
| instance | No | Which connected Inventor to use (list_instances). Leave empty when only one is connected. | |
| geometry1 | Yes | ||
| geometry2 | Yes | ||
| occurrence1 | Yes | ||
| occurrence2 | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |