Save Assembly
save_assemblySaves the active SolidWorks assembly in place or to a new .sldasm path, optionally copying referenced parts; deprecated in favor of save_file.
Instructions
Deprecated: use save_file.
Save the active assembly in place, or as a new .sldasm, optionally copying the parts it uses alongside.
Before writing to a new path it checks the folder exists and is writable,
changes the extension to .sldasm, and refuses an existing file unless
overwrite is on. With include_references, it instead copies the assembly
file as last saved, and the files it references, into the new folder; unsaved
changes are left out and references are not updated. To copy an assembly with
its referenced parts, use pack_and_go_assembly. Needs: an open, active assembly, saved once for
include_references. Changes: writes the assembly file (and copies). Returns:
file_path, plus copied_files and missing_source_files when copying
references.
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_assembly"
}
}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` and `include_references` are off. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||