Delete/Keep Bodies
delete_bodiesDeletes bodies from the active part, or keeps only the named ones with keep=true. Fails without changes if a name is unknown or all bodies would be removed.
Instructions
Beta: new: checked on SolidWorks by a scratch run, not yet by a live demo.
Delete bodies from the active part, or with keep=true keep only the named ones.
Fails, changing nothing, when a name is unknown or every body would go.
Needs: a part with the bodies (list_bodies). Changes: adds a
Body-Delete/Keep feature (undo with delete_feature). Returns: delete
with name, removed (the bodies deleted), the body names, counts
and volumes before and after.
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": "delete_bodies"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input_data | Yes | `bodies`, and `keep`. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||