set_visibility
Override an object's persistent visibility flag to keep reference primitives or producer inputs visible in reopened FreeCAD documents. Save with visibility_hygiene=False to lock the change.
Instructions
Override an object's persistent Visibility flag. By default save_document auto-hides producer-inputs (the Base/Tool of a Cut, features inside a Body) so the re-opened doc shows just the final composition. Use this to override — e.g. to keep a reference primitive visible next to a derived part. Note that the next save_document with visibility_hygiene=True (the default) may re-hide it; pass visibility_hygiene=False to save_document to lock the override in.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| handle | Yes | ||
| visible | Yes |