We value your input! Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey
2014-12-18 09:34 AM
For k=0 TO 2 STEP 1 x= 5 * k y= 10 * k NEXT kSo the effect would be two sets of values for X and Y :
line2 5,10,10,20 !!!! or ... line2 x,y,x,yHow am I supposed to get those x1, y1, x2 and y2 ?
2014-12-18 09:49 AM
DIM x [] DIM y [] For k=1 TO 2 x= 5 * k y = 10 * k NEXT k line2 x[1],y[1],x[2],y[2]
x = 0 y = 0 For k=1 TO 2 x= 5 * k y= 10 * k PUT x,y NEXT k line2 GET(NSP)Barry.
2014-12-19 11:24 AM
x = 0 y = 0 For k=1 TO 2 x= 5 * k y= 10 * k PUT x,y NEXT k line2 GET(1), GET(1), GET(1), GET(1) ! ----- First line x1, y1, x2, y2, line2 0, 0, GET(1), GET(1) ! ----- Second line 0,0, x1, y1 line2 GET(1), GET(1), 0,0 ! ----- Third line x2, y2, 0, 0
2014-12-19 11:35 AM
2014-12-19 12:40 PM
Ilder wrote:And this the answer to my next question, thanks !
Hy,
In your case the array method is much more efficient because the buffer is a first in first out container and you can't read the second number without reading the first one.
2014-12-19 01:11 PM
DIM x [] DIM y [] For k=1 TO 2 x= 5 * k y = 10 * k NEXT k line2 x[1], y[1], x[2], y[2] ! ----- First line x1, y1, x2, y2, line2 0, 0, x[1], y[1] ! ----- Second line 0,0, x1, y1 line2 x[2], y[2], 0,0 ! ----- Third line x2, y2, 0, 0
2014-12-19 01:14 PM
2014-12-19 02:51 PM
Barry wrote:Electrical or neurological?
I had a blackout just as I was about to post.
2014-12-21 02:54 AM