Skip to content

Navigation Menu

Sign in
Sign up

Export Parameter Dependencies To CSV

KaiUR edited this page May 28, 2026 · 1 revision

Export Parameter Dependencies To CSV

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


Description

Exports all parameters from the active CATPart together with their formula dependency relationships. Two dependency columns are included:

  • Driven By — the name of the formula or relation that computes the parameter (if any)
  • Used In — a semicolon-separated list of every relation that reads the parameter as an input

This makes it easy to identify which parameters are free inputs and which are driven or consumed by formulas. The output is saved alongside the part document, or to the Downloads folder if the part has not been saved.


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 saved in the same folder as the part

Output

A CSV file named PartName_Parameter_Dependencies.csv:

Parameter Name,Value,Driven By,Used In
"Length","150mm","","Formula.1"
"Width","75mm","Formula.1",""
"Thickness","5mm","",""

Notes

  • Parameters that cannot be read (e.g. protected or system parameters) are printed as a warning and skipped
  • If no driving relation exists, the Driven By column is blank
  • If a parameter is not referenced by any relation, the Used In column is blank
  • If the output file is already open in another application, a permission error is printed and the script exits

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

AltStyle によって変換されたページ (->オリジナル) /