cancel
Showing results for 
Search instead for 
Did you mean: 
EN
cancel
Showing results for 
Search instead for 
Did you mean: 
Patrick M
Virtuoso

array dimensions locked

how do I set an array? seems that I'm locked to a 1x1 grid.

Screenshot 2026-09-16 at 7.58.00 AM.png

 

Operating system used: Mac Apple Silicon

BIM solutions and trouble shooting (self proclaimed) expert. Using Archicad Version (all of them), on Mac OS (whatever is 1 version older than current)
1 Reply 1
runxel
Moderator

Hi Patrick, it's not the most intuitive, but the solution is simple: Click on either of the "1", then the "Insert" button on the right will come active.

Now you can add new rows or columns depending on which you selected, e.g. when the left "1" was selected, you get a new row, making the array having two items, but still one dimension, denoted as "[2]".

If you add columns you will get a two-dimensional array "[rows][columns]".

 

Please be aware that there is a bug that one the first time this dialog is opened and closed the value (or rather the dimensional order) in the parameter view of the GDL editor does not update.

E.g. here the "[2]" shows that the "myarray" holds two rows of data. The first time I closed that dialog it still showed "[1]".

runxel_0-1789573627977.png

 

Pro tip: If you need to set a large number of rows and columns it will be easier to just temporarily write that with a loop and the PARAMETERS command.

You can than immediately delete that code again; the array will not shrink back.

 

Lucas Becker | AC 29 on Mac (Sequoia) | Graphisoft Insider Panelist | Akroter.io – high-end GDL objects | Author of Runxel's Archicad Wiki | Editor at SelfGDL | Developer of the GDL plugin for Sublime Text

My List of AC shortcomings & bugs | I Will Piledrive You If You Mention AI Again |

POSIWID – The Purpose Of a System Is What It Does /// «Furthermore, I consider that Carth... yearly releases must be destroyed»

Didn't find the answer?

Check other topics in this Forum

Back to Forum

Read the latest accepted solutions!

Accepted Solutions

Start a new conversation!