Skip to content

Navigation Menu

Sign in
Sign up

Rotate Three Points Keep History

KaiUR edited this page May 21, 2026 · 3 revisions

Rotate Three Points Keep History

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


Description

Rotates selected hybrid shapes using a three-point rotation definition (start point, centre point, end point), preserving the original names of all shapes. The result is a live parametric feature — the source shape is kept as an input and the defining points can be edited after creation.


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 with hybrid shapes and three points
  2. Run the script
  3. Selection 1: Select the hybrid shapes to rotate — click OK when done
  4. Selection 2: Select the start point
  5. Selection 3: Select the centre point (defines the rotation axis and pivot)
  6. Selection 4: Select the end point
  7. 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_Three_Points_Keep_History is created
  • All results are live parametric features — they retain a link to the source geometry and can be edited

Notes

  • The rotation angle is implicitly defined by the angular distance from the start point to the end point around the centre point
  • 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 Three Points Keep Name when you want isolated datums instead
  • For rotating all shapes in a geometric set at once use Rotate Three Points Keep History And Structure
  • For rotation defined by an explicit angle use Rotate Angle 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 によって変換されたページ (->オリジナル) /