Combine Bodies
combine_bodiesJoin, subtract, or intersect bodies in an active SolidWorks part to form one body, such as subtracting a mould part from a block.
Instructions
Beta: new: checked on SolidWorks by a scratch run, not yet by a live demo.
Combine bodies of the active part: add them, subtract tool bodies from a main body, or keep their common volume.
E.g. a mould core: subtract the part from a block. The tool bodies are
consumed and the result is one body (SolidWorks renames it after the
feature, e.g. Combine1). Fails, changing nothing, when a name is
unknown, the main body is also a tool, an add's bodies don't touch, or
a subtract or common removes no volume. Needs: a part with the bodies
(list_bodies). Changes: adds a Combine feature. Returns: combine
with name, operation, the body names, counts and volumes before
and after, and volume_change_mm3.
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": {
"input_data": "<input_data>"
},
"name": "combine_bodies"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input_data | Yes | `operation`, `main_body` and `tool_bodies`. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||