hexagon logo

MIN/MAX of 186 distance dimensions

Hello all,
Wondering if i can get help with this real quick. I am currently programming a fairly large part, and wanting to throw in thicknesses (copy/paste points on opposing surfaces), more as sort of a red flag for any areas to double check (manually).

So I have distance dimensions, labeled "DIST1" thru "DIST186". I am trying to use variables and generic features to pass on only the MIN and MAX of these, to keep the already hefty report, down a few pages.

the problem I'm having, I'm not entirely sure the cause, but the MIN and MAX variables are putting out the same measurement (MAX). I'm wondering if it is because I am creating such a large array, and if i need to section it out with smaller arrays somehow?

Currently "DIST1" and "DIST2" are my min and max values, so I have shown them here. and shortened when pasting here, and only provided the relevant code. Any help or suggestions are greatly appreciated.

Here is my code:

DIM DIST1= 3D DISTANCE FROM POINT PNT1 TO POINT PNT_A1,SHORTEST=OFF,NO_RADIUS UNITS=IN,$
GRAPH=OFF TEXT=OFF MULT=10.00 OUTPUT=NONE
AX NOMINAL +TOL -TOL MEAS DEV OUTTOL
M 1.0470 0.0050 0.0050 1.0480 0.0010 0.0000 -----#---
DIM DIST2= 3D DISTANCE FROM POINT PNT2 TO POINT PNT_A2,SHORTEST=OFF,NO_RADIUS UNITS=IN,$
GRAPH=OFF TEXT=OFF MULT=10.00 OUTPUT=NONE
AX NOMINAL +TOL -TOL MEAS DEV OUTTOL
M 1.0470 0.0050 0.0050 1.0460 -0.0010 0.0000 ---#-----

---(all in between dimensions)---

DIM DIST186= 3D DISTANCE FROM POINT PNT191 TO POINT PNT_A191,SHORTEST=OFF,NO_RADIUS UNITS=IN,$
GRAPH=OFF TEXT=OFF MULT=10.00 OUTPUT=NONE
AX NOMINAL +TOL -TOL MEAS DEV OUTTOL
M 1.0470 0.0050 0.0050 1.0470 0.0000 0.0000 ----#----
V1 =LOOP/START,ID=YES,NUMBER=186,START=1,SKIP=,
OFFSET:XAXIS=0,YAXIS=0,ZAXIS=0,ANGLE=0
ASSIGN/V2="DIST"+V1
ASSIGN/DIST_ARRAY[V1]=V2.MEAS
LOOP/END
ASSIGN/V3=MAX(DIST_ARRAY)
ASSIGN/V4=MIN(DIST_ARRAY)
Parents Reply Children
No Data