Skip to content

Clash Detection Export

KaiUR edited this page May 21, 2026 · 2 revisions

Clash Detection Export

File: Product_Document_Scripts/Clash_Detection_Export.py
Version: 1.0
Document Type: Product


Description

Runs an interference/clash detection analysis on the active CATProduct using the DMU Space Analysis workbench and exports all detected interferences to a CSV file. The script creates or reuses an interference check set, sets it to check all components against all others, runs the analysis, and iterates the results. Detected clashes, contacts, and clearance violations are all reported.


Requirements

Requirement Value
Python >= 3.10
pycatia >= 0.8.3
Open document Product
CATIA licence DMU Space Analysis or DMU Navigator required

Usage

  1. Open a CATProduct in CATIA
  2. Run the script
  3. The analysis runs automatically — progress is reported in the console
  4. The CSV is saved next to the CATProduct file (or to ~/Downloads if unsaved)

Output

CSV file: <ProductName>_ClashReport.csv

Column Content
Type Clash, Contact, or Clearance Violation
Component1 Name of the first component in the pair
Component2 Name of the second component in the pair
Interference_Volume_mm3 Volume of the interfering region (mm³)
Status Interference status string

Notes

  • If the DMU Space Analysis or DMU Navigator licence is not available, the script prints a clear error and exits
  • An existing Python_Clash_Check interference set is reused if present; otherwise a new one is created
  • The check is run as all-vs-all (both groups set to the root product)
  • If no clashes are found the script prints a message and exits without creating a CSV file

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