Skip to content

Navigation Menu

Sign in
Sign up

Measure Radius Surface Keep Con Auto Edge

KaiUR edited this page Jun 3, 2026 · 7 revisions

Measure Radius Surface — Keep Construction — Auto Edge

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


Description

Selects a surface face and automatically loops over all border edges. For each edge the script:

  1. Extracts the edge with tangent-continuity propagation
  2. Finds the edge midpoint and constructs a plane normal to the edge at that point
  3. Intersects the plane with the surface to obtain a cross-section curve
  4. Places three points along the curve (at 20 %, 50 % and 80 %)
  5. Fits a 3-point circle and measures the radius

Results for all edges are shown in a single message box. Curve construction geometry is deleted; the measurement sets (datum points and fitted circle) are kept nested under one parent geometric set.

See also Measure Radius Surface Keep Con for the version that requires manual edge selection.


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: Select the surface face to measure
  4. The script processes all border edges automatically
  5. A message box displays results for all edges

Output

A message box showing one result per edge:

Edge 1: R=25.43mm D=50.86mm
Edge 2: R=12.00mm D=24.00mm
Edge 3: Planar (points are collinear)
Edge 4: R=25.43mm D=50.86mm

A geometric set named MEASURE SURFACE CURVE AS CIRCLE is left in the part. It contains one sub-set per edge (Edge 1, Edge 2, ...), each holding:

  • 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

  • Edges are indexed automatically from the surface BRep; no manual edge selection is required
  • If the three points are collinear (planar cross-section), the edge is reported as Planar and no circle is created for that edge
  • Results are rounded to 2 decimal places
  • To keep all curve construction geometry use Measure Radius Surface Keep Con

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 によって変換されたページ (->オリジナル) /