Skip to content

Check Open Bodies

KaiUR edited this page May 21, 2026 · 2 revisions

Check Open Bodies

File: Part_Document_Scripts/Check_Open_Bodies.py
Version: 1.0
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 null volume), or ERROR (SPA measurement failed). Results are printed to the console with a summary.


Requirements

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

Usage

  1. Open a CATPart
  2. Run the script
  3. Results are printed to the console — no file is created

Console Output

 Checking 3 solid body/bodies...

  Body                                 Status
  ------------------------------------ --------
  PartBody                             OK
  Support_Plate                        WARNING  (zero volume — may be open or empty)
  Mount_Bracket                        OK

 Summary: 2 OK  |  1 Warning  |  0 Error

Status Definitions

Status Meaning
OK Body has a positive, measurable volume
WARNING SPA returned zero or null 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 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