Skip to content

Rotate Angle Keep Name

KaiUR edited this page Jun 3, 2026 · 5 revisions

Rotate Angle Keep Name

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


Description

Rotates selected hybrid shapes by a user-defined angle around a selected axis, preserving the original names of all shapes. The result is created as a datum (isolated) so it has no parametric link to the source geometry.


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 to use as the rotation axis
  2. Run the script
  3. Selection 1: Select the hybrid shapes to rotate — click OK when done
  4. Selection 2: Select the rotation axis (a line or edge)
  5. A dialog appears asking for the angle in degrees — enter a value and click OK
  6. Rotated shapes are created as datums 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_Name is created
  • All results are datums (isolated) — no parametric link to source geometry

Notes

  • Enter a positive angle to rotate in one direction, negative to rotate the other way
  • The script supports Points, Curves, Lines, Circles, and Surfaces
  • Source shapes are not deleted or modified
  • For rotating all shapes in a geometric set at once use Rotate Angle Keep Name And Structure
  • For rotation defined by three points instead of an angle use Rotate Three Points Keep Name

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