Skip to content

Check Open Bodies

KaiUR edited this page May 22, 2026 · 4 revisions

Check Open Bodies

File: Part_Document_Scripts/Check_Open_Bodies.py
Version: 1.1
Document Type: Part


Description

Checks every solid body in the active CATPart for open (zero-volume or unresolvable) geometry using the SPA (Space Analysis) workbench. Each body is reported as OK, WARNING (zero or negative volume), or ERROR (SPA measurement failed). Results are shown in a scrollable wx dialog with a summary.


Requirements

Requirement Value
Python >= 3.10
pycatia >= 0.8.3
wxPython Required
Open document Part

Usage

  1. Open a CATPart
  2. Run the script
  3. A scrollable results dialog appears showing each body's status and volume value

Dialog Output

The results dialog shows a table of all bodies with their volume and status, followed by a summary line. A monospace font is used for alignment. The dialog title indicates whether issues were found.


Status Definitions

Status Meaning
OK Body has a positive, measurable volume
WARNING SPA returned zero or negative volume — body may be open, empty, or have conflicting geometry
ERROR SPA could not measure the body — likely a regeneration error or unsupported body type

Notes

  • Only top-level solid bodies in the part are checked — bodies inside geometric sets are not included
  • WARNING does not necessarily mean the body is invalid; an empty body with no solids will also report WARNING
  • For WARNING or ERROR bodies, use the CATIA Geometry Check tool for a detailed analysis

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