constrain_insert
Creates an insert constraint between two circular edges to align axes and seat faces for bolt-to-hole assembly in one call. Specify component edge indices and optional offset.
Instructions
Insert constraint between two circular edges — a bolt into a hole in one call (aligns the axes AND seats the faces).
Args: occurrence1: Index of the first component. edge1: Circular edge index on that component (see list_component_edges). occurrence2: Index of the second component. edge2: Circular edge index on that component. offset: Distance between the two circle planes in mm. axes_opposed: True = the components face each other (normal bolt/hole case).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| edge1 | Yes | ||
| edge2 | Yes | ||
| offset | No | ||
| instance | No | Which connected Inventor to use (list_instances). Leave empty when only one is connected. | |
| occurrence1 | Yes | ||
| occurrence2 | Yes | ||
| axes_opposed | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |