Skip to content

Navigation Menu

Sign in
Sign up

Axis To Axis Keep History And Structure

KaiUR edited this page May 21, 2026 · 3 revisions

Axis To Axis Keep History And Structure

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


Description

Performs an axis-to-axis transformation on every hybrid shape inside a selected geometric set, recreating the full geometric set structure in the current in-work object and preserving the original names of all shapes and geometric sets. Recurses through all child geometric sets automatically. Results are left as live parametric features with a link to the source geometry.


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 and two axis systems
  2. Run the script
  3. Selection 1: Select the geometric set to transform
  4. Selection 2: Select the reference axis system (the axis the shapes are currently aligned to)
  5. Selection 3: Select the target axis system (the axis to move the shapes to)
  6. The transformed structure is created inside the current in-work geometric set

Output

A child geometric set named after the source is created inside the in-work object, containing the full recreated structure with all shapes transformed as live parametric features:

[in-work object]
 └── SourceSetName
 ├── Shape_A
 ├── Shape_B
 └── ChildSetName
 ├── Shape_C
 └── Shape_D

Notes

  • All results are live parametric features — they retain a link to the source geometry and can be edited
  • The source geometric set is not modified
  • The selected geometric set must not be the current in-work object — the script will exit with an error if this is the case
  • Use this script when you need to keep the parametric history; use Axis To Axis Keep Name And Structure when you want isolated datums instead
  • For transforming individual selected shapes rather than a whole set use Axis To Axis Keep History

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 によって変換されたページ (->オリジナル) /