Skip to content

Scale Keep History

KaiUR edited this page May 21, 2026 · 3 revisions

Scale Keep History

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


Description

Scales selected hybrid shapes about a centre point by a user-defined ratio, preserving the original name of each shape. The result is a live parametric feature — the source shape is kept as an input and the centre point or ratio can be edited after creation.


Requirements

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

Usage

  1. Open a CATPart document containing hybrid shapes and a point
  2. Run the script
  3. Selection 1: Select the hybrid shapes to scale (multi-select supported)
  4. Selection 2: Select the centre point for the scaling operation
  5. A dialog appears — enter the scale ratio (e.g. 2.0 = double size, 0.5 = half size) and click OK
  6. Scaled shapes are created inside the current in-work geometric set

Output

  • Scaled shapes are added to the current in-work geometric set
  • If the in-work object is not a geometric set, a new geometric set named Scale_Keep_History is created
  • All results are live parametric features — they retain a link to the source geometry and can be edited

Notes

  • Enter a ratio greater than zero; values less than 1 reduce the size, values greater than 1 increase it
  • The source shapes are not modified
  • Use this script when you need to keep the parametric history; use Scale Keep Name when you want isolated datums instead
  • For scaling all shapes in a geometric set while keeping the full structure use Scale Keep History And Structure

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