hexagon logo

How to pull radius from scan segment?

I scan an area of the part to check a blend requirement. I pull the minimum points from the scan to check depth, but there is also a callout for a minimum radius. Is it possible to pull the radius from the scan segment and have it change if the blend area is not in the exact same location every time?
  • If you know where is the minimum points, assuming that the min is along Z, you can (the loop depends on the scan density and the width of the blend area) :
    ASSIGN/V1=SCN1.HIT[..SCN1.NUMHITS].Z
    ASSIGN/V2=MINDICES(V1)
    V3 =LOOP/START,ID=YES,NUMBER=20,START=1,SKIP=,
    OFFSET:XAXIS=0,YAXIS=0,ZAXIS=0,ANGLE=0
    ASSIGN/V4=V2[V3]
    F1=GENERIC/POINT,DEPENDENT,CARTESIAN,$
    NOM/XYZ,<SCN1.HIT[V4].X,SCN1.HIT[V4].Y,SCN1.HIT[V4].Z>,$
    MEAS/XYZ,<SCN1.HIT[V4].X,SCN1.HIT[V4].Y,SCN1.HIT[V4].Z>,$
    NOM/IJK,<SCN1.HIT[V4].I,SCN1.HIT[V4].J,SCN1.HIT[V4].K>,$
    MEAS/IJK,<SCN1.HIT[V4].I,SCN1.HIT[V4].J,SCN1.HIT[V4].K>,$
    LOOP/END

    Then construct a circle from F​[1..20]