save_document
Saves the active SolidWorks document or exports it to a specified file path, using the extension to choose the format and requiring overwrite confirmation for existing files.
Instructions
Saves the active document. With 'path' (e.g. C:\projects\part.SLDPRT, .step, .stl, .pdf...) saves/exports to that file: the format is taken from the extension. When the user has set a projects folder, relative paths are confined to it and missing folders inside it are created. If the target file already exists, overwrite must be True or the save is rejected.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | ||
| overwrite | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |