Libraries & objects
About Archicad and BIMcloud libraries, their management and migration, objects and other library parts, etc.

Help!! GDL Script

giza
Booster
hi everyone i am trying to make an object, and i only need one small code or script part that i don't know how to do, i will post attached an example with smaller (simple) script. This object needs to have sort of multiply or addition option on two axis "x" and "z" with separate spacing on those same axes, so i managed to do it on one axis but when i repeat the script for z axis it only adds (multiplies) my object on the first row.

here is the simple script for a BRICK eg.:

! X axis
for i=1 to NOP
brick 1,2,1
addx psd
next i

! z axis
for i=1 to NOPZ
brick 1,2,1
addZ psdz
next i


this is simple script because the original has objects made from archicad and is too long.


thank you
Gezim Radoniqi | Architect | BIM Manager @ 4MGroup
ArchiCAD user since version 6
AMD Ryzen 3950X CPU, 64 GB RAM, NVidia RTX 3060 12GB
3 REPLIES 3
giza
Booster
the result???
experiment.jpg
Gezim Radoniqi | Architect | BIM Manager @ 4MGroup
ArchiCAD user since version 6
AMD Ryzen 3950X CPU, 64 GB RAM, NVidia RTX 3060 12GB
Anonymous
Not applicable
Hello giza

You need to imbricate the "X script" inside the "Z Script" and delete after each "X script" "nop" translation to return to the "x" origin.

Try this one

for j=1 to nopz

for i=1 to nop
brick 1,2,1
addx psd
next i
del nop


addZ psdz
next j

Hope this helps
giza
Booster
thanks a lot Frédéric

i am really not god at gdl, i knew there is a little trick here hehe

thank you man when I finish my object i'll send it to you
Gezim Radoniqi | Architect | BIM Manager @ 4MGroup
ArchiCAD user since version 6
AMD Ryzen 3950X CPU, 64 GB RAM, NVidia RTX 3060 12GB