hexagon logo

An easier way to create the "high point"

Thought I'd share my prefered method of extracting and constructing the high point from a feature.

For me, the constructed CAST point is less prone to error. You know, the "copy/paste/edit" type errors. And it save a little time.

Here's some code the showing both the CAST point and the common solution I see posted here. I've added a couple of dimensions to show that both ways result in the same "high point".

Hope this is helpful.

BB_LE      =FEAT/SCAN,SECTIONSCAN,NUMBER OF HITS=31
            ,SHOW HITS=NO,SHOWALLPARAMS=NO
            MEAS/SCAN
            BASICSCAN/LINE,NUMBER OF HITS=31,SHOW HITS=NO,SHOWALLPARAMS=NO
            ENDSCAN
            ENDMEAS/
$$ NO,
             Create the highpoint using a CAST point construction
            ASSIGN/V1=MAXINDEX(BB_LE.HIT[1..BB_LE.NUMHITS].Z)
BB_HIPNT   =FEAT/POINT,CARTESIAN,NO
            THEO/<0.6189,-3.9197,0.0012>,<0.0338778,-0.0002627,0.9994259>
            ACTL/<0.6176,-3.9197,0.0022>,<0.0338778,-0.0002627,0.9994259>
            CONSTR/POINT,CAST,BB_LE.HIT[V1]
$$ NO,
             or, create the highopint usining a GENERIC point
            ASSIGN/V2=MAXINDEX(BB_LE.HIT[1..BB_LE.NUMHITS].Z)
BB_HIPNT2  =GENERIC/POINT,DEPENDENT,CARTESIAN,$
            NOM/XYZ,<BB_LE.HIT[V2].TX,BB_LE.HIT[V2].TY,BB_LE.HIT[V2].TZ>,$
            MEAS/XYZ,<BB_LE.HIT[V2].X,BB_LE.HIT[V2].Y,BB_LE.HIT[V2].Z>,$
            NOM/IJK,<BB_LE.HIT[V2].TI,BB_LE.HIT[V2].TJ,BB_LE.HIT[V2].TK>,$
            MEAS/IJK,<BB_LE.HIT[V2].I,BB_LE.HIT[V2].J,BB_LE.HIT[V2].K>
$$ NO,
            are the points the same?
            DISPLAYPRECISION/6
DIM LOC15= LOCATION OF POINT BB_HIPNT  UNITS=IN ,$
GRAPH=OFF  TEXT=OFF  MULT=50.00  OUTPUT=BOTH  HALF ANGLE=NO
AX       MEAS    NOMINAL        DEV       +TOL       -TOL     OUTTOL
X     0.617551   0.618871  -0.001320   0.002000   0.002000   0.000000 -#-------
Y    -3.919657  -3.919665   0.000008   0.002000   0.002000   0.000000 ----#----
Z     0.002164   0.001171   0.000993   0.002000   0.002000   0.000000 ------#--
T     0.000948   0.000000   0.000948   0.002000   0.002000   0.000000 ------#--
END OF DIMENSION LOC15
DIM LOC16= LOCATION OF POINT BB_HIPNT2  UNITS=IN ,$
GRAPH=OFF  TEXT=OFF  MULT=50.00  OUTPUT=BOTH  HALF ANGLE=NO
AX       MEAS    NOMINAL        DEV       +TOL       -TOL     OUTTOL
X     0.617551   0.618871  -0.001320   0.002000   0.002000   0.000000 -#-------
Y    -3.919657  -3.919665   0.000008   0.002000   0.002000   0.000000 ----#----
Z     0.002164   0.001171   0.000993   0.002000   0.002000   0.000000 ------#--
T     0.000948   0.000000   0.000948   0.002000   0.002000   0.000000 ------#--
END OF DIMENSION LOC16
Parents Reply Children
No Data