Please see the below code.
Code:
ASSIGN/V1=FDIM/2
ASSIGN/V2=PROBEDATA("DIAM")/2
ASSIGN/V3=BDIM/2
ASSIGN/V4=EDIM-GDIM
ASSIGN/V5=128
ASSIGN/V6=150
ASSIGN/V7=0
ASSIGN/V8=128-1
DO/
ASSIGN/V7=V7+1
ASSIGN/V8=V8+1
UNTIL/V8==V6
V10 =LOOP/START,ID=YES,NUMBER=V7,START=1,SKIP=,
OFFSET:XAXIS=0,YAXIS=0,ZAXIS=1,ANGLE=0
LIN1 =FEAT/CONTACT/LINE/DEFAULT,CARTESIAN,BOUNDED
THEO/<V1,-V1-V2,128>,<V1,-V3+V2,128>,<0,-1,0>,<-1,0,0>,<0,0,1>,3.085
ACTL/<0.7,-1.05,128>,<0.7,-4.135,128>,<0,-1,0>,<-1,0,0>,<0,0,1>,3.085
TARG/<V1,-V1-V2,128>,<V1,-V3+V2,128>,<0,-1,0>,<-1,0,0>,<0,0,1>
SHOW FEATURE PARAMETERS=NO
SHOW CONTACT PARAMETERS=NO
LOOP/END
PLN2 =FEAT/PLANE,CARTESIAN,TRIANGLE,NO
THEO/<0,0,0>,<0,-1,0>
ACTL/<0,0,0>,<0,0,1>
CONSTR/PLANE,BF,LIN1[1].HITS[1..LIN1.NUMHITS],,
OUTLIER_REMOVAL/OFF,3
FILTER/OFF,WAVELENGTH=0
In this example i have 23 lines to construct a plane.
I could use LIN1[1].hits[1..lin1.numhits] all the way through LIN1[23].hits[1..lin1.numhits] to construct a plane this time.
However another part may have 25 lines, or 12. So V7 won't be constant.
The do until command is just a counter for others to know where i get the count from.
The loop runs fine.
Just can't figure out how i can, or if i can, to pull all the hits on an unknown loop count.