Save Document
save_documentSave the active FreeCAD document to a specified .FCStd file path, with an option to hide consumed intermediate objects so reopened documents display only the final shape without broken geometry.
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 |