GDL
About building parametric objects with GDL.

Library global array

JGoode
Expert

Hello,

 

I'm looking to call an array parameter from my model view options but I get the error of "Incompatible array dimensions".

 

Is it possible to pull an array with values from my MVO and input those into an array within the object? The array is set to 20 rows with 1 column in both.

 

Thanks

ArchiCAD 23

Windows 10
2 REPLIES 2
Jochen Suehlo
Moderator

With 1-dimensional Array Parameters you should get no problems.
You must define either in both objects an Array Parameter with the same dimensions or you can define an Array with DIM in the calling object.

Jochen Suehlo . AC12-27 . MAC OSX 14.4 . WIN11
GDL object creation: b-prisma.de
Peter Baksa
Graphisoft
Graphisoft

Changing the default values of an MVO object has no effect if you already changed that MVO in your plan. The size of an array is also included in the default value.

Better to use a dynamic array, you never know when it needs to be grown. Drawback: a dynamic array has to be one-dimensional in the caller object.

Péter Baksa
Software Engineer, Library
Graphisoft SE, Budapest

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!