Skip to content

Measure Radius Surface Keep Con

KaiUR edited this page May 18, 2026 · 8 revisions

Measure Radius Surface — Keep Construction

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


Description

Identical to Measure Radius Surface but keeps all construction geometry (intersection curve, datum points, fitted circle) in the part after measurement.


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 surface to measure
  2. Run the script
  3. Selection 1: Select the surface to measure
  4. Selection 2: Select an edge on the surface to define the measurement direction

    The edge must not be a closed curve

  5. A message box displays the result
  6. Construction geometry remains in a geometric set named MEASURE SURFACE CURVE AS CIRCLE

Output

A message box showing:

Radius: 25.43mm
Diameter: 50.86mm

If the surface is planar in the selected direction (points are collinear):

Radius: 0mm
Diameter: 0mm

Surface is Planar in selected direction
Points are colinear

A geometric set named MEASURE SURFACE CURVE AS CIRCLE is left in the part containing:

  • Curve_Extract_Datum — the intersection curve datum
  • Point_Datum_1/2/3 — the three measurement points
  • Circle_To_Measure_Datum — the fitted circle datum

Notes

  • The selected edge must not be a closed curve
  • Results are rounded to 2 decimal places
  • To discard the construction geometry use Measure Radius Surface

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