Save As
save_asSaves the active SolidWorks document under a new path as a native file or exchange format such as STEP or IGES.
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 saves a copy
like File > Save As; any other format_type is passed to the exporter. 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.
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` is off. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||