cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 
2024 Technology Preview Program

2024 Technology Preview Program:
Master powerful new features and shape the latest BIM-enabled innovations

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

Array parameters

Cosminn
Contributor
Hi all, my name is Daniel and i'm from Romania. I started creating more GDL objects, and i got a problem with array parameters, maybe you can help me. I have 3 parameters A, B and C. IF A=2; B=3 then I want that parameter C have 2 values because A=2 and another 3 values because B=3. So I want 5 values for parameter C. I hope you will understand, i'm sorry for my english.
Sincerely,
Daniel
1 REPLY 1
Dave Seabury
Advocate
Daniel,

A description of what you are trying to construct would help.

If you have an array (array_C) with the following values

ARRAY_C
10
20
30
40
50

and lets say A=2, B=3 If you want to pull values from the array_c

FOR n=1 to A+B

array_c

do something.............

next n

This would pull a value of "10" for the first instance of array_c[1]
and a value of "20" for the second instance of array_c[2]

etc, etc

Again, not sure what you are trying to do though.

David
AC 19-24 Windows 10 64 bit, Dell Prercision 7820, Xeon Silver 2414R ( 12 Cores), 64 GB Ram, Quadro RTX 4000 8GB