hexagon logo

MAX Point MIN Point Of a scan

Morning All,

I am having some trouble finding the max values for different linear open scans. I looked at other posts and I tried Josh's code but I could not get it to work.

Does anyone see a problem with my code or something I am doing wrong?


F1 =GENERIC/POINT,DEPENDENT,CARTESIAN,$
NOM/XYZ,<TOPSCN.HIT[MAXPTINDEX].TX,TOPSCN.HIT[MAXPTINDEX].TY,TOPSCN.HIT[MAXPTINDEX].TZ>,$
MEAS/XYZ,<TOPSCN.HIT[MAXPTINDEX].X,TOPSCN.HIT[MAXPTINDEX].Y,TOPSCN.HIT[MAXPTINDEX].Z>,$
NOM/IJK,<TOPSCN.HIT[MAXPTINDEX].TI,TOPSCN.HIT[MAXPTINDEX].TJ,TOPSCN.HIT[MAXPTINDEX].TK>,$
MEAS/IJK,<TOPSCN.HIT[MAXPTINDEX].I,TOPSCN.HIT[MAXPTINDEX].J,TOPSCN.HIT[MAXPTINDEX].K>

DIM LOC1= LOCATION OF POINT F1 UNITS=IN ,$
GRAPH=OFF TEXT=OFF MULT=10.00 OUTPUT=BOTH HALF ANGLE=NO
AX NOMINAL +TOL -TOL MEAS DEV OUTTOL MAX MIN
X 0.0000 0.0020 0.0020 0.0000 0.0000 0.0000 0.0000 0.0000 ----#----
Y 0.0000 0.0020 0.0020 0.0000 0.0000 0.0000 0.0000 0.0000 ----#----
Z 0.0000 0.0020 0.0020 0.0000 0.0000 0.0000 0.0000 0.0000 ----#----
END OF DIMENSION LOC1
ASSIGN/MAXPTINDEX=0

TIA
Parents
  • Wait... you want the distance between the extreme max value and the extreme min value of a scan? Wouldn't that just be profile? Or if you want to make sure you get the distance if they're on the same side pull the MIN and MAX from the profile?

    DIM DIM_9= PROFILE OF SURFACE OF SET PROFILE_HITS    FORMANDLOCATION  UNITS=IN ,$
    GRAPH=OFF  TEXT=OFF  MULT=10.00  ARROWDENSITY=100  OUTPUT=BOTH
    AX    NOMINAL       +TOL       -TOL       MEAS        DEV     OUTTOL
    M       0.0000     0.0010     0.0010     0.0041     0.0041     0.0021 <---|--->
                ASSIGN/V1=DIM_9.M.MAX
                ASSIGN/V2=DIM_9.M.MIN
    F1         =GENERIC/POINT,DEPENDENT,CARTESIAN,$
                NOM/XYZ,<0,0,0>,$
                MEAS/XYZ,<V1-V2,0,0>,$
                NOM/IJK,<0,0,1>,$
                MEAS/IJK,<0,0,1>
    DIM DIM_A5= LOCATION OF POINT F1  UNITS=IN ,$
    GRAPH=OFF  TEXT=OFF  MULT=10.00  OUTPUT=BOTH  HALF ANGLE=NO
    AX    NOMINAL       +TOL       -TOL       MEAS        DEV     OUTTOL
    X       0.0000     0.0020     0.0020     0.0041     0.0041     0.0021 -------->
    END OF DIMENSION DIM_A5
  • 4 scans total and not the min/max deviations but the distance between the max points.
Reply Children
No Data