hexagon logo

manipulating arrays question

i'm a noob, so this may be pretty simple for the rest of you. I have a large number of auto-vector hits in this program, what I want is to report the minimum and maximum tol values. I have been reading hte help files and manuals, but I can't figure this out. here is what i have so far:

scn1 = feature set of all the points
loc1234 = dimensioned scn1 tol
assign v1 = sortup(array(loc1234.t.meas))

Or do I have to report all the individual points and then construct an array like this: assign v1 = array(loc1.t.meas, loc2.t.meas.....etc)
if so, is there an easy way to do that?
Parents
  • i got the formula to work (turn blue at least), and I think I understand what is going on there... but still reporting zeros.


    T value for all 17 hits in scan one are dimensioned up here

    SCN1 =FEAT/SET,CARTESIAN
    THEO/<-0.0034,-0.0671,1.4152>,<0,0,1>
    ACTL/<-0.0042,-0.0575,1.415>,<0,0,1>
    CONSTR/SET,BASIC,P1,P2,P3,P4,P5,P6,P7,P8,P9,P10,P11,P12,P13,P14,P15,P16,P17,,

    ASSIGN/VAR1=DOT((SCN1.HIT[1..SCN1.NUMHITS].XYZ-SCN1.HIT[1..NUMHITS].TXYZ),SCN1.HIT[1..NUMHITS].TIJK)
    ASSIGN/MAX_VAR1=MAX(VAR1)
    ASSIGN/MIN_VAR1=MIN(VAR1)
    COMMENT/REPT,
    "ORBIT RANGE IS "+MIN_VAR1+" TO "+MAX_VAR1

    report reads : "orbit range is 0 to 0"


    this line will not work: ASSIGN/PROF_VAR2=FORMAT("%.4f",VAR2)
Reply
  • i got the formula to work (turn blue at least), and I think I understand what is going on there... but still reporting zeros.


    T value for all 17 hits in scan one are dimensioned up here

    SCN1 =FEAT/SET,CARTESIAN
    THEO/<-0.0034,-0.0671,1.4152>,<0,0,1>
    ACTL/<-0.0042,-0.0575,1.415>,<0,0,1>
    CONSTR/SET,BASIC,P1,P2,P3,P4,P5,P6,P7,P8,P9,P10,P11,P12,P13,P14,P15,P16,P17,,

    ASSIGN/VAR1=DOT((SCN1.HIT[1..SCN1.NUMHITS].XYZ-SCN1.HIT[1..NUMHITS].TXYZ),SCN1.HIT[1..NUMHITS].TIJK)
    ASSIGN/MAX_VAR1=MAX(VAR1)
    ASSIGN/MIN_VAR1=MIN(VAR1)
    COMMENT/REPT,
    "ORBIT RANGE IS "+MIN_VAR1+" TO "+MAX_VAR1

    report reads : "orbit range is 0 to 0"


    this line will not work: ASSIGN/PROF_VAR2=FORMAT("%.4f",VAR2)
Children
No Data