We value your input! Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey
2018-11-28 02:36 PM
dim sides[] for i=1 to 3 verts = i next iThis is possible:
block verts[1], verts[2], verts[3]But i want to pass the whole array at once something like this (not possible):
block vertsThis would be extremly helpful for more complicated geometry functions like the tube function. Example:
TUBE 4, 7, 16+32, 0, 0, 0, -0.5, 0, 0, -0.5, -0.5, 0, 0, -0.5, 0, 0 +0.2, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 1, 2, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0+0.2, 0, 0
2018-11-28 02:48 PM
2018-11-28 04:26 PM
2018-11-28 06:01 PM
You can write something like this: DIM x_g[6]: DIM y_g[6] x_g[1]=100 : y_g[1]=0 x_g[2]=0 : y_g[2]=0 x_g[3]=0 : y_g[3]=10 x_g[4]=10 : y_g[4]=10 x_g[5]=10 : y_g[5]=0 x_g[6]=0 : y_g[6]=100 GOSUB "tube_4eck~" END "tube_4eck~": PUT 0,0,0, !Profil 0,1,0, 1,1,0, 1,0,0, 0,0,0 profpoints = NSP/3 !----------------------------- FOR ii = 1 TO VARDIM1(x_g) PUT x_g[ii], y_g[ii], 0, 0 NEXT ii pathpoints = (NSP - profpoints * 3)/4 !------------------------------- BODY -1 TUBE profpoints, pathpoints, 1+2+4+8+16+32, GET(NSP) BODY -1 RETURN
2018-11-29 03:28 AM
AC22-23 AUS 7000 | Help Those Help You - Add a Signature |
Self-taught, bend it till it breaks | Creating a Thread |
Win11 | i9 10850K | 64GB | RX6600 | Win10 | R5 2600 | 16GB | GTX1660 |