close_document
Closes an open SolidWorks part, assembly, or drawing by title, or the current document when no title is given. Optionally saves before closing; unsaved changes are discarded otherwise.
Instructions
Close one open document by its title (list_documents): a part, assembly or drawing.
Without a title it closes the current part or assembly. save=True saves it over its own file first; otherwise closing never asks and unsaved changes are lost (the result says discarded_changes). Parts that an open assembly loaded (visible false) close with that assembly and are refused here. With no title and no current document it closes SolidWorks' active one, but only when that has no unsaved changes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| save | No | ||
| title | No |