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'm getting a whole lot of pretty red text. I guess I don't understand what you are doing exactly with these parts: DOT(--FIRST PART--),SCN1.HIT[1..numhits].TIJK) is that a second parameter?? I don't know the DOT() command ????

    The parts I can get to "work" (color blue) return zero.
    I don't understand this stuff.





    DIM LOC1= LOCATION OF POINT P1
    AX MEAS
    T -0.0046
    END OF DIMENSION LOC1
    DIMINFO/LOC1;ICON,DIMID,FEATID,VERT,HORIZ, ,$
    HEADINGS,GRAPH AXIS;TOL, , , , , , , , ,$
    T, , , , , , , , , , , , , , , ,
    DIM LOC2= LOCATION OF POINT P2
    AX MEAS
    T -0.0047
    END OF DIMENSION LOC2
    DIMINFO/LOC2;ICON,DIMID,FEATID,VERT,HORIZ, ,$
    HEADINGS,GRAPH AXIS;TOL, , , , , , , , ,$
    T, , , , , , , , , , , , , , , ,
    DIM LOC3= LOCATION OF POINT P3
    AX MEAS
    T -0.0050
    END OF DIMENSION LOC3
    DIMINFO/LOC3;ICON,DIMID,FEATID,VERT,HORIZ, ,$
    HEADINGS,GRAPH AXIS;TOL, , , , , , , , ,$
    T, , , , , , , , , , , , , , , ,






    ASSIGN/ARY1=ARRAY( LOC1.T.MEAS,LOC2.T.MEAS,LOC3.T.MEAS) ASSIGN/R1=SORTUP(ARY1)






    ASSIGN/MAX_R1=MAX(R1)
    ASSIGN/MIN_R1=MIN(R1)
    COMMENT/REPT,
    "max is "+MAX_R1
    "min is "+MIN_R1




    DIM LOC1= LOCATION OF POINT P1
    AX MEAS
    T -0.0046
    DIM LOC2= LOCATION OF POINT P2
    AX MEAS
    T -0.0047
    DIM LOC3= LOCATION OF POINT P3
    AX MEAS
    T -0.0050
    max is -0.0046
    min is -0.005



    the bold part is what i want to know how to get around (cuz i can't c+P). maybe i wasnt cleatr enough in my question
Reply
  • I'm getting a whole lot of pretty red text. I guess I don't understand what you are doing exactly with these parts: DOT(--FIRST PART--),SCN1.HIT[1..numhits].TIJK) is that a second parameter?? I don't know the DOT() command ????

    The parts I can get to "work" (color blue) return zero.
    I don't understand this stuff.





    DIM LOC1= LOCATION OF POINT P1
    AX MEAS
    T -0.0046
    END OF DIMENSION LOC1
    DIMINFO/LOC1;ICON,DIMID,FEATID,VERT,HORIZ, ,$
    HEADINGS,GRAPH AXIS;TOL, , , , , , , , ,$
    T, , , , , , , , , , , , , , , ,
    DIM LOC2= LOCATION OF POINT P2
    AX MEAS
    T -0.0047
    END OF DIMENSION LOC2
    DIMINFO/LOC2;ICON,DIMID,FEATID,VERT,HORIZ, ,$
    HEADINGS,GRAPH AXIS;TOL, , , , , , , , ,$
    T, , , , , , , , , , , , , , , ,
    DIM LOC3= LOCATION OF POINT P3
    AX MEAS
    T -0.0050
    END OF DIMENSION LOC3
    DIMINFO/LOC3;ICON,DIMID,FEATID,VERT,HORIZ, ,$
    HEADINGS,GRAPH AXIS;TOL, , , , , , , , ,$
    T, , , , , , , , , , , , , , , ,






    ASSIGN/ARY1=ARRAY( LOC1.T.MEAS,LOC2.T.MEAS,LOC3.T.MEAS) ASSIGN/R1=SORTUP(ARY1)






    ASSIGN/MAX_R1=MAX(R1)
    ASSIGN/MIN_R1=MIN(R1)
    COMMENT/REPT,
    "max is "+MAX_R1
    "min is "+MIN_R1




    DIM LOC1= LOCATION OF POINT P1
    AX MEAS
    T -0.0046
    DIM LOC2= LOCATION OF POINT P2
    AX MEAS
    T -0.0047
    DIM LOC3= LOCATION OF POINT P3
    AX MEAS
    T -0.0050
    max is -0.0046
    min is -0.005



    the bold part is what i want to know how to get around (cuz i can't c+P). maybe i wasnt cleatr enough in my question
Children
No Data