Skip to content

Toggle Show Hide Geometric Set

KaiUR edited this page May 21, 2026 · 2 revisions

Toggle Show Hide Geometric Set

File: Any_Document_Scripts/Toggle_Show_Hide_Geometric_Set.py
Version: 1.2
Document Type: Part, Product, or Process


Description

Toggles the visibility of the contents and children inside a selected geometric set. The selected set itself is not affected. Each element is toggled based on its own current visibility state — if it is shown it will be hidden, and if it is hidden it will be shown.


Requirements

Requirement Value
Python >= 3.10
pycatia >= 0.8.3
wxPython Not required
Open document Part, Product, or Process

Usage

  1. Open a CATPart, CATProduct, or CATProcess document containing a geometric set
  2. Run the script
  3. Select the geometric set whose contents should be toggled — click OK when done
  4. All elements and child sets inside the selected set are toggled between shown and hidden — the selected set itself is unchanged

Notes

  • The selected set itself is not affected — only the items inside it are toggled
  • Each element is toggled based on its own current visibility state, not the parent's — so elements that were already hidden before running the script will be shown, and vice versa
  • The toggle applies recursively to all child geometric sets and their contents
  • To hide or show all planes and axis systems across the whole document use Hide Planes And Axis Systems instead

Home


Getting Started


Contributing


Any Document Scripts


Drawing Document Scripts


Part Document Scripts


Shape Generation Scripts


Process Document Scripts


Product Document Scripts


Utility Scripts


Legal

Clone this wiki locally