sw_close
Closes a SolidWorks document and blocks closing when unsaved changes exist unless discard_changes is set to true.
Instructions
Close a document. Refuses if it has unsaved changes unless discard_changes=true (the user is asked).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| doc | No | Document title or path. Defaults to the active document. | |
| discard_changes | No |