Save Body as Part
save_body_as_partSaves a named solid body from an active multibody part as a new .sldprt file, splitting multibody designs into separate parts.
Instructions
Save one solid body of the active multibody part as a new part file (Insert > Features > Save Bodies).
Use it to split a multibody part into parts, e.g. after create_extrusion
without merging. Needs: an open, active part with the named body and an existing
target folder. Changes: adds a Save Bodies feature to the part and writes the
new .sldprt; closes any new, unsaved assembly SolidWorks opens alongside.
Returns: data with body, file_path, feature, solid_bodies (every
body name, to correct a wrong one) and closed_documents.
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": "save_body_as_part"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input_data | Yes | The body. `body_name` and `file_path` (a .sldprt) are required. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||