Skip to content

Export All Parameters To CSV

KaiUR edited this page May 21, 2026 · 3 revisions

Export All Parameters To CSV

File: Part_Document_Scripts/Export_All_Parameters_To_CSV.py
Version: 1.0
Document Type: Part


Description

Exports every parameter from the active CATPart to a CSV file, including the parameter name, type, value, and formula (if any). Useful for design reviews, change tracking, and auditing parameter-driven models.


Requirements

Requirement Value
Python >= 3.10
pycatia >= 0.8.3
wxPython Not required
Open document Part

Usage

  1. Open a CATPart document
  2. Run the script — no user input is required
  3. The CSV file is created in the same folder as the part document

Output

A CSV file named PartName_Parameters.csv saved alongside the source CATPart:

Parameter Name,Type,Value,Formula
"Length","0","150mm",""
"Width","0","75mm","Length / 2"
"Thickness","0","5mm",""

Notes

  • Parameters that cannot be read (e.g. protected or system parameters) are written with a blank value rather than causing the script to fail
  • If a parameter has no formula the Formula column is left blank
  • If the output file is already open in another application the script will print a permission error and exit

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