save_document
Save the active FreeCAD document to a specified .FCStd path, automatically hiding consumed intermediate elements to prevent double-rendering on reopen.
Instructions
Save the active document to the given .FCStd path.
visibility_hygiene (default True): before saving, hide any object that has been consumed as a producer-input (the Base/Tool of a Cut, the BaseFeature of a Body, every feature inside a Body's Group, etc.). Without this the re-opened doc double-renders intermediates on top of the final shape — a failure mode that looks identical to broken geometry. Pass False to keep explicit set_visibility overrides intact.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| visibility_hygiene | No |