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
  • Interesting approach jefman, but all I got was "(0,0)" on report.

    I've tried a bunch of different variations of the code and I can't get anything but zeros to report. The only way I've been successfully able to creat an array of the measured tolerance values and report them is by typing in all the LOC#'s manually into the array, like this ASSIGN/ V1 = ARRAY(LOC1.T.MEAS, LOC2.T.MEAS, etc....), then sort up and report min as v1.1 and max as v1.(# of last hit). Which I never am going to take the time to set up something like that because it negates the convenience of getting the two values i want from the array. 99% of the time when I'm inspecting graphite electrodes I just need to know if they're in-tolerance, so max and min tolerance numbers are what I want, and when reviewing 150 (or more) individual points' tol values there's a greater chance an "oopsie" will slip through and down the line (where it becomes a BIG, exponentially more costly oopsie).

    I have been trying different ways of getting those "LOC#.T.MEAS" values to generate in an array with looping but with no success yet. I AM going to figure this out one day....then I'll be a demon-slayer.
Reply
  • Interesting approach jefman, but all I got was "(0,0)" on report.

    I've tried a bunch of different variations of the code and I can't get anything but zeros to report. The only way I've been successfully able to creat an array of the measured tolerance values and report them is by typing in all the LOC#'s manually into the array, like this ASSIGN/ V1 = ARRAY(LOC1.T.MEAS, LOC2.T.MEAS, etc....), then sort up and report min as v1.1 and max as v1.(# of last hit). Which I never am going to take the time to set up something like that because it negates the convenience of getting the two values i want from the array. 99% of the time when I'm inspecting graphite electrodes I just need to know if they're in-tolerance, so max and min tolerance numbers are what I want, and when reviewing 150 (or more) individual points' tol values there's a greater chance an "oopsie" will slip through and down the line (where it becomes a BIG, exponentially more costly oopsie).

    I have been trying different ways of getting those "LOC#.T.MEAS" values to generate in an array with looping but with no success yet. I AM going to figure this out one day....then I'll be a demon-slayer.
Children
No Data