Boolean bodies
onshape_booleanCombine bodies in an Onshape Part Studio using union, subtraction, or intersection operations; specify target bodies for subtraction.
Instructions
Combine bodies: UNION, SUBTRACTION or INTERSECTION. Subtraction also needs the targets query.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| op | No | Boolean operation (default UNION). | |
| 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. | |
| name | No | Feature name shown in the tree (default "Boolean"). | |
| tools | No | FeatureScript query selecting the tool bodies. | |
| targets | No | FeatureScript query selecting the target bodies (SUBTRACTION). | |
| tool_ids | No | Deterministic ids of the tool bodies. | |
| validate | No | Re-read the feature list afterwards and fail if the feature regenerated with an error (default true). | |
| keep_tools | No | Keep the tool bodies after the operation. |