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
  • hi

    if you got the point index,
    you can call it to an constructed point

    LIN1 =FEAT/CONTACT/LINE/DEFAULT,CARTESIAN,BOUNDED
    THEO/<0,-59.019,-115.831>,<0,-238.198,63.348>,<0,-0.7071068,0.7071068>,<0,0.7071068,0.7071068>,<1,0, 0>,253.397
    ACTL/<0,-59.019,-115.831>,<0,-238.198,63.348>,<0,-0.7071068,0.7071068>,<0,0.7071068,0.7071068>,<1,0, 0>,253.397
    TARG/<0,-59.019,-115.831>,<0,-238.198,63.348>,<0,-0.7071068,0.7071068>,<0,0.7071068,0.7071068>,<1,0, 0>
    SHOW FEATURE PARAMETERS=NO
    SHOW CONTACT PARAMETERS=NO
    
    ASSIGN/TVAL=DOT((LIN1.HIT[1..LIN1.NUMHITS].XYZ-LIN1.HIT[1..LIN1.NUMHITS].TXYZ),LIN1.HIT[1..LIN1.NUMHITS].TIJK)
    ASSIGN/MAXV=MAXINDEX(TVAL)
    ASSIGN/MINV=MININDEX(TVAL)
    
    "constructed point Max"
    MAXPOINT =FEAT/POINT,CARTESIAN,NO
    THEO/<0,-173.369,-1.481>,<0,0.7071068,0.7071068>
    ACTL/<0,-173.369,-1.481>,<0,0.7071068,0.7071068>
    CONSTR/POINT,CAST,LIN1.HIT[MAXV]
    
    "constructed point Min"
    MINPOINT =FEAT/POINT,CARTESIAN,NO
    THEO/<0,-166.166,-8.684>,<0,0.7071068,0.7071068>
    ACTL/<0,-166.166,-8.684>,<0,0.7071068,0.7071068>
    CONSTR/POINT,CAST,LIN1.HIT[MINV]
    
Reply
  • hi

    if you got the point index,
    you can call it to an constructed point

    LIN1 =FEAT/CONTACT/LINE/DEFAULT,CARTESIAN,BOUNDED
    THEO/<0,-59.019,-115.831>,<0,-238.198,63.348>,<0,-0.7071068,0.7071068>,<0,0.7071068,0.7071068>,<1,0, 0>,253.397
    ACTL/<0,-59.019,-115.831>,<0,-238.198,63.348>,<0,-0.7071068,0.7071068>,<0,0.7071068,0.7071068>,<1,0, 0>,253.397
    TARG/<0,-59.019,-115.831>,<0,-238.198,63.348>,<0,-0.7071068,0.7071068>,<0,0.7071068,0.7071068>,<1,0, 0>
    SHOW FEATURE PARAMETERS=NO
    SHOW CONTACT PARAMETERS=NO
    
    ASSIGN/TVAL=DOT((LIN1.HIT[1..LIN1.NUMHITS].XYZ-LIN1.HIT[1..LIN1.NUMHITS].TXYZ),LIN1.HIT[1..LIN1.NUMHITS].TIJK)
    ASSIGN/MAXV=MAXINDEX(TVAL)
    ASSIGN/MINV=MININDEX(TVAL)
    
    "constructed point Max"
    MAXPOINT =FEAT/POINT,CARTESIAN,NO
    THEO/<0,-173.369,-1.481>,<0,0.7071068,0.7071068>
    ACTL/<0,-173.369,-1.481>,<0,0.7071068,0.7071068>
    CONSTR/POINT,CAST,LIN1.HIT[MAXV]
    
    "constructed point Min"
    MINPOINT =FEAT/POINT,CARTESIAN,NO
    THEO/<0,-166.166,-8.684>,<0,0.7071068,0.7071068>
    ACTL/<0,-166.166,-8.684>,<0,0.7071068,0.7071068>
    CONSTR/POINT,CAST,LIN1.HIT[MINV]
    
Children