Skip to content

Copy Geometric Set To New Part

KaiUR edited this page May 21, 2026 · 4 revisions

Copy Geometric Set To New Part

File: Part_Document_Scripts/Copy_Geometric_Set_To_New_Part.py
Version: 1.1
Document Type: Part (also works with Part inside Product or Process)


Description

Copies all hybrid shapes from a selected geometric set into a new blank CATPart as datums without parametric links. The new part is named after the selected geometric set. Useful for isolating geometry for delivery or sharing a subset of a complex part.


Requirements

Requirement Value
Python >= 3.10
pycatia >= 0.8.3
wxPython Not required
Open document Part, or Part inside Product/Process

Usage

  1. Open a CATPart document containing a geometric set with hybrid shapes
  2. Run the script
  3. Select the geometric set to copy — click OK when done
  4. A new blank CATPart is created containing the copied geometry as datums

Output

A new unsaved CATPart document is created in CATIA named after the selected geometric set. The part contains a single geometric set with the same name, holding all copied shapes as datums (no parametric links to the source part).


Notes

  • The new part is not saved automatically — save it manually after reviewing the result
  • Only the top-level hybrid shapes of the selected set are copied — child geometric sets are not recursed into
  • All copied shapes are datums with no link back to the source part
  • Only works on the immediate children of the selected geometric set, not nested sets

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