Set Visibility
set_visibilityOverride an object's persistent visibility flag to keep it visible or hidden in a FreeCAD document. Use this to show reference primitives alongside derived parts, countering auto-hiding on save.
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 |