Save As
save_asSaves the active SolidWorks document to a new path as a native file or exports it to STEP/IGES, with optional copy and overwrite behavior.
Instructions
Save the active document under a new path, as a SolidWorks file or in an exchange format such as STEP or IGES.
For a SolidWorks format (solidworks, sldprt, sldasm, slddrw) it is File >
Save As: the open document becomes the new file, and open assemblies that use
it follow it to the new name. With as_copy it writes a copy instead and the
original stays the open, referenced document. Any other format_type is an
export: it writes a copy, and the open document keeps its own file. For one known format with its options, prefer
export_step, export_stl and the other export_* tools. Needs: an open,
active document. Changes: writes the file. A file already at file_path is
kept and the call refused, unless overwrite is on. Returns: file_path and
format; with as_copy, current_path and kept_original.
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_as"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input_data | Yes | The target. `file_path` is required; `format_type` defaults to "solidworks", and `overwrite` and `as_copy` are off. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||