Skip to content

Copy Parameters Between Parts

KaiUR edited this page May 22, 2026 · 4 revisions

Copy Parameters Between Parts

File: Part_Document_Scripts/Copy_Parameters_Between_Parts.py
Version: 1.1
Document Type: Part


Description

Copies selected parameters from one open CATPart to another via a GUI dialog. The source and destination parts are chosen from dropdowns listing all currently open CATPart documents. After loading the source part's parameters, individual parameters are selected via a checklist and copied into the destination part. If a parameter with the same name already exists in the destination it is updated; otherwise a new parameter is created.


Requirements

Requirement Value
Python >= 3.10
pycatia >= 0.8.3
wxPython Required
Open document Two or more CATPart documents open simultaneously

Usage

  1. Open at least two CATPart documents in CATIA
  2. Run the script
  3. Select the source part and destination part from the dropdowns
  4. Click Load Source Parameters
  5. Tick the parameters to copy in the checklist
  6. Click OK — parameters are copied and the destination part is updated

Dialog

Control Description
Source Part Dropdown — select the part to copy parameters from
Destination Part Dropdown — select the part to copy parameters into
Load Source Parameters Loads the parameter list from the selected source part
Parameter checklist Tick the parameters to copy

Notes

  • Only user-readable parameters are shown (design parameters, not internal CATIA system parameters)
  • If a parameter already exists in the destination part, its value is updated in place
  • New parameters created in the destination are typed as real (floating-point) or string based on the source value
  • Relations and formulas are not copied — only the current value
  • The destination part is updated (recalculated) after all parameters are applied
  • Source and destination must be different parts

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