align_instance_to_face
Align a source instance flush against a face of a target instance in an Onshape assembly. Only moves the perpendicular axis; other axes remain unchanged.
Instructions
Position source instance flush against a face of target instance. Faces: front (min Y), back (max Y), left (min X), right (max X), bottom (min Z), top (max Z). Only moves the perpendicular axis; other axes stay unchanged.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| face | Yes | Face of target to align source against | |
| elementId | Yes | Assembly element ID | |
| documentId | Yes | Document ID | |
| workspaceId | Yes | Workspace ID | |
| sourceInstanceId | Yes | Instance ID to move | |
| targetInstanceId | Yes | Instance ID to align against |