hexagon logo

T-Values from a SCN Set

Ex. SCN1 (either a constructed set or scan feature)

T-Value Calculation and reporting of Max and Min Values.


No generic points needed.

No Loop.

No previous Dimensioning.

Create a T-Value array, find maxval and minval, and get the maxpnt and minpnt.


ASSIGN/TVAL=0

ASSIGN/TVAL=DOT((SCN1.HIT[1..SCN1.NUMHITS].XYZ-SCN1.HIT
[[COLOR=#ff0000]1..SCN1.NUMHITS[/COLOR] ].TXYZ),SCN1.HIT[[/COLOR]1..SCN1.NUMHITS].TIJK)

ASSIGN/MAXVAL=MAXINDEX(TVAL)

ASSIGN/MINVAL=MININDEX(TVAL)

ASSIGN/MAXPNT=GETTEXT("REFERENCE ID",MAXVAL,{SCN1})

ASSIGN/MINPNT=GETTEXT("REFERENCE ID",MINVAL,{SCN1})


Then dimension any two points x,y,z,t
Say LOC1 PNT1 & LOC2 PNT2

Highlight LOC1 and replace it with MAXTVAL
Highlight PNT1 and replace it with MAXPNT

Highlight LOC2 and replace it with MINTVAL
Highlight PNT2 and replace it with MINPNT


That's it.
Parents
  • SCN1       =FEAT/SET,CARTESIAN
                THEO/<-4.9989,0.19,2.2362>,<0,-1,0>
                ACTL/<-5.0024,0.1715,2.2356>,<0,0,-1>
                CONSTR/SET,BASIC,PT401,PT402,PT403,PT404,PT405,PT406,PT407,PT408,PT409,PT4010,PT4011,PT4012,PT4013,PT4014,PT4015,PT4016,PT4017,PT4018,PT4019,PT4020,PT4021,PT4022,PT4023,PT4024,PT4025,PT4026,PT4027,,
                ASSIGN/TVAL=0
                ASSIGN/TVAL=DOT((SCN1.HIT[1..SCN1.NUMHITS].XYZ-SCN1.HIT[1.NUMHITS].TXYZ),SCN1.HIT[1.NUMHITS].TIJK)
                ASSIGN/MAXVAL=MAXINDEX (TVAL)
                ASSIGN/MINVAL=MININDEX (TVAL)
                ASSIGN/MAXPNT=GETTEXT("REFERENCE ID",MAXVAL,{SCN1})
                ASSIGN/MINPNT=GETTEXT("REFERENCE ID",MINVAL,{SCN1})
    DIM MAXTVAL= LOCATION OF POINT MAXPNT  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.1350     0.0100     0.0100     0.1291    -0.0059     0.0000     0.1291     0.1291 -#----
    Y       0.1900     0.0020     0.0020     0.1812    -0.0088     0.0068     0.1812     0.1812 <-----
    Z       4.0333     0.0020     0.0020     4.0333     0.0000     0.0000     4.0333     4.0333 ---#--
    T       0.0000     0.0020     0.0020    -0.0059    -0.0059     0.0039    -0.0059    -0.0059 <-----
    END OF DIMENSION MAXTVAL
    DIM MINTVAL= LOCATION OF POINT MINPNT  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.1350     0.0100     0.0100     0.1291    -0.0059     0.0000     0.1291     0.1291 -#----
    Y       0.1900     0.0020     0.0020     0.1812    -0.0088     0.0068     0.1812     0.1812 <-----
    Z       4.0333     0.0020     0.0020     4.0333     0.0000     0.0000     4.0333     4.0333 ---#--
    T       0.0000     0.0020     0.0020    -0.0059    -0.0059     0.0039    -0.0059    -0.0059 <-----
    END OF DIMENSION MINTVAL
    


    I was trying this out but I seem to be getting the same for both min and max.
    Have any idea what is going wrong?
Reply
  • SCN1       =FEAT/SET,CARTESIAN
                THEO/<-4.9989,0.19,2.2362>,<0,-1,0>
                ACTL/<-5.0024,0.1715,2.2356>,<0,0,-1>
                CONSTR/SET,BASIC,PT401,PT402,PT403,PT404,PT405,PT406,PT407,PT408,PT409,PT4010,PT4011,PT4012,PT4013,PT4014,PT4015,PT4016,PT4017,PT4018,PT4019,PT4020,PT4021,PT4022,PT4023,PT4024,PT4025,PT4026,PT4027,,
                ASSIGN/TVAL=0
                ASSIGN/TVAL=DOT((SCN1.HIT[1..SCN1.NUMHITS].XYZ-SCN1.HIT[1.NUMHITS].TXYZ),SCN1.HIT[1.NUMHITS].TIJK)
                ASSIGN/MAXVAL=MAXINDEX (TVAL)
                ASSIGN/MINVAL=MININDEX (TVAL)
                ASSIGN/MAXPNT=GETTEXT("REFERENCE ID",MAXVAL,{SCN1})
                ASSIGN/MINPNT=GETTEXT("REFERENCE ID",MINVAL,{SCN1})
    DIM MAXTVAL= LOCATION OF POINT MAXPNT  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.1350     0.0100     0.0100     0.1291    -0.0059     0.0000     0.1291     0.1291 -#----
    Y       0.1900     0.0020     0.0020     0.1812    -0.0088     0.0068     0.1812     0.1812 <-----
    Z       4.0333     0.0020     0.0020     4.0333     0.0000     0.0000     4.0333     4.0333 ---#--
    T       0.0000     0.0020     0.0020    -0.0059    -0.0059     0.0039    -0.0059    -0.0059 <-----
    END OF DIMENSION MAXTVAL
    DIM MINTVAL= LOCATION OF POINT MINPNT  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.1350     0.0100     0.0100     0.1291    -0.0059     0.0000     0.1291     0.1291 -#----
    Y       0.1900     0.0020     0.0020     0.1812    -0.0088     0.0068     0.1812     0.1812 <-----
    Z       4.0333     0.0020     0.0020     4.0333     0.0000     0.0000     4.0333     4.0333 ---#--
    T       0.0000     0.0020     0.0020    -0.0059    -0.0059     0.0039    -0.0059    -0.0059 <-----
    END OF DIMENSION MINTVAL
    


    I was trying this out but I seem to be getting the same for both min and max.
    Have any idea what is going wrong?
Children
No Data