Skip to content

Export Drawing Dimensions To CSV

KaiUR edited this page May 22, 2026 · 5 revisions

Export Drawing Dimensions To CSV

File: Drawing_Document_Scripts/Export_Drawing_Dimensions_To_CSV.py
Version: 1.1
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

Labels are derived directly from the CatDimType enum (pycatia.enumeration.enums). The full set of recognised values:

CatDimType member Label in CSV
catDimDistance (0) Distance
catDimDistanceOffset (1) Distance Offset
catDimLength (2) Length
catDimLengthCurvilinear (3) Length Curvilinear
catDimAngle (4) Angle
catDimRadius (5) Radius
catDimRadiusTangent (6) Radius Tangent
catDimRadiusCylinder (7) Radius Cylinder
catDimRadiusEdge (8) Radius Edge
catDimDiameter (9) Diameter
catDimDiameterTangent (10) Diameter Tangent
catDimDiameterCylinder (11) Diameter Cylinder
catDimDiameterEdge (12) Diameter Edge
catDimDiameterCone (13) Diameter Cone
catDimChamfer (14) Chamfer
catDimSlope (15) Slope
catDimLengthCircular (16) Length Circular
catDimRadiusFillet (17) Radius Fillet
catDimDiameterTorus (18) Diameter Torus
catDimRadiusTorus (19) Radius Torus
catDimDistanceMin (20) Distance Min
Unknown 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