Skip to content

Batch CATDrawing To PDF

KaiUR edited this page May 21, 2026 · 5 revisions

Batch CATDrawing To PDF

File: Drawing_Document_Scripts/Batch_CATDrawing_To_PDF.py
Version: 1.1
Document Type: Any (no specific open document required)


Description

Opens a folder selection dialog and exports every .CATDrawing file found in the selected folder to PDF. Output files are saved to a PDF_Export subfolder created inside the selected folder. Each drawing is opened, exported, and closed in sequence.


Requirements

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

Usage

  1. Run the script from any open CATIA session
  2. A folder browser dialog opens — select the folder containing the CATDrawing files
  3. The script processes each drawing automatically and reports progress in the console

Output

A PDF_Export subfolder is created inside the selected folder. Each drawing is exported as <DrawingName>.pdf.

SelectedFolder/
  ├── Drawing_A.CATDrawing
  ├── Drawing_B.CATDrawing
  └── PDF_Export/
        ├── Drawing_A.pdf
        └── Drawing_B.pdf

Notes

  • Only .CATDrawing files directly inside the selected folder are processed — subfolders are not searched
  • Drawings that are already open in CATIA are not affected; the script opens its own instance of each file
  • If a drawing fails to export, the script logs the error and continues with the next file
  • The script does not modify the CATDrawing files in any way

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