Skip to content

Navigation Menu

Sign in
Sign up

Rotate Angle Keep History

KaiUR edited this page May 21, 2026 · 3 revisions

Rotate Angle Keep History

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


Description

Rotates selected hybrid shapes by a user-defined angle around a chosen axis, preserving the original names of all shapes. The result is a live parametric feature — the source shape is kept as an input and the axis or angle 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 with hybrid shapes and a line or axis to rotate around
  2. Run the script
  3. Selection 1: Select the hybrid shapes to rotate — click OK when done
  4. Selection 2: Select the rotation axis (any line or axis)
  5. A dialog appears — enter the angle in degrees and click OK
  6. Rotated shapes are created in the current in-work geometric set with the same names as the source shapes

Output

  • Rotated 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 Rotate_Angle_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 positive angle to rotate counter-clockwise, negative to rotate clockwise (following the right-hand rule around the selected axis)
  • The script supports Points (type 1), Curves (type 2), Lines (type 3), Circles (type 4), and Surfaces (type 5)
  • Source shapes are not deleted or modified
  • Use this script when you need to keep the parametric history; use Rotate Angle Keep Name when you want isolated datums instead
  • For rotating all shapes in a geometric set at once use Rotate Angle Keep History And Structure
  • For rotation defined by three points rather than an angle use Rotate Three Points 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 によって変換されたページ (->オリジナル) /