transform_instance
Apply relative translation and rotation to an assembly instance in inches and degrees. Ensure the instance is not fixed or grounded to avoid errors.
Instructions
Apply a RELATIVE transform to an assembly instance (inches and degrees). Note: fails on fixed/grounded instances — use get_assembly_positions to check the 'fixed' flag first.
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>",
"instanceId": "<instanceId>"
},
"name": "transform_instance"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rotateX | No | X rotation in degrees | |
| rotateY | No | Y rotation in degrees | |
| rotateZ | No | Z rotation in degrees | |
| elementId | Yes | Assembly element ID | |
| documentId | Yes | Document ID | |
| instanceId | Yes | Instance ID to transform | |
| translateX | No | X translation in inches | |
| translateY | No | Y translation in inches | |
| translateZ | No | Z translation in inches | |
| workspaceId | Yes | Workspace ID |