Save document
save_documentAtomically save the current FreeCAD document by document ID, optionally within a workspace, and increment its metadata revision after a successful save.
Instructions
Explicitly save the current document atomically. This is equivalent to the auto-save that happens after create_box/create_cylinder/set_parameter, but can be called independently. After a successful save the document's metadata revision is incremented.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| success | Yes | Whether the export completed without error. | |
| step_path | Yes | Absolute path to the exported STEP file. | |
| document_id | Yes | Validated document identifier. | |
| exported_count | Yes | Number of objects exported. |