Skip to content

Export Drawing Dimensions To CSV

KaiUR edited this page May 21, 2026 · 5 revisions

Export Drawing Dimensions To CSV

File: Any_Document_Scripts/Export_Drawing_Dimensions_To_CSV.py
Version: 1.0
Document Type: Drawing (CATDrawing)


Description

Iterates through all sheets and views in the active CATDrawing and exports every dimension to a CSV file. For each dimension the script records the sheet name, view name, dimension name, dimension type, and the primary measured value.


Requirements

Requirement Value
Python >= 3.10
pycatia >= 0.8.3
Open document Drawing (CATDrawing)

Usage

  1. Open a CATDrawing in CATIA
  2. Run the script
  3. The CSV is saved next to the CATDrawing file (or to ~/Downloads if unsaved)

Output

CSV file: <DrawingName>_Dimensions.csv

Column Content
Sheet Sheet name
View View name
Name Dimension object name
Type Dimension type (Distance, Angle, Radius, etc.)
Value Primary dimension value

Dimension Types

Type Label
Distance Distance
Angle Angle
Radius Radius
Diameter Diameter
Length Length
ChamferAngle Chamfer Angle
ChamferLength Chamfer Length
ChamferLengthLength Chamfer Length/Length
Other Type <n>

Notes

  • Background views are not scanned — only regular views
  • Dimensions with no readable value are exported with an empty value field
  • If no dimensions are found, the script exits without creating a 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