Transform instances
onshape_transform_instanceMove or rotate selected assembly occurrences in Onshape using a 4x4 transform matrix. Set absolute or relative transforms to position parts exactly.
Instructions
Apply a 4x4 row-major transform (16 numbers, metres) to the given occurrence paths.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ws | Yes | Workspace id — the <ws> segment of the document URL. | |
| doc | Yes | Document id — the <doc> in cad.onshape.com/documents/<doc>/w/<ws>/e/<elem>. | |
| elem | Yes | Element id (tab) — the <elem> segment of the document URL. | |
| paths | Yes | Occurrence paths, each an array of node ids. | |
| absolute | No | Treat the transform as absolute rather than relative. | |
| transform | Yes | Row-major 4x4 transform matrix. |