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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"documentId": "<documentId>",
"workspaceId": "<workspaceId>",
"elementId": "<elementId>",
"sourceInstanceId": "<sourceInstanceId>",
"targetInstanceId": "<targetInstanceId>",
"face": "<face>"
},
"name": "align_instance_to_face"
}
}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 |