Save Part
save_partSaves the active SolidWorks part in place or to a new .sldprt path, checking the target folder and refusing existing files unless overwrite is enabled.
Instructions
Deprecated: use save_file.
Save the active part in place, or as a new .sldprt with the target path checked first.
Before writing to a new path it checks the folder exists and is writable,
changes the extension to .sldprt, and refuses an existing file unless
overwrite is on. For other formats, use save_as or an export_* tool. Needs: an open, active part. Changes: writes
the part file. Returns: file_path when saved to a new path.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "save_part"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input_data | No | The save. Nothing is required: give `file_path` for a new path or omit it to save in place; `overwrite` is off. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||