Home › Forums › General discussions › Array Parameter
Tagged: gdl
- This topic has 4 replies, 3 voices, and was last updated 7 years, 6 months ago by Kristian Bursell.
-
AuthorPosts
-
-
November 5, 2016 at 21:05 #2828Daniel VirticParticipant
Hi everyone,
Please see attached.
Any help = will be appreciated.
Thank you.
Daniel
Attachments:
AC20 USA
•Workstation HP Z800 2 x Intel Xeon Quad Core E5620/E5630, 36 GB ram DDR3 - NVIDIA QUADRO 4000 2 GB memory, Windows 10 pro -
November 7, 2016 at 10:49 #2836Gergely FehérKeymaster
Try it with the following paramscript, where “size1” and “size2” are the array size parameters and “myArray” is the array with changeable size:
values "size1" range [1,) values "size2" range [1,) if GLOB_MODPAR_NAME = "size1" or GLOB_MODPAR_NAME = "size2" then dim _tempArray [][] _tempArray = myArray dim myArray [][] for ii = 1 to size1 for jj = 1 to size2 if ii > vardim1(_tempArray) or jj > vardim2 (_tempArray) then _value = 0 else _value = _tempArray[ii][jj] endif myArray[ii][jj] = _value next jj next ii parameters myArray = myArray endif
Gergely Fehér
Team Leader, Library Team
GRAPHISOFT SE -
November 7, 2016 at 10:50 #2837Gergely FehérKeymaster
By the way, this thread should be somewhere under “Problems and solutions in GDL”, not in “General discussion”.
Gergely Fehér
Team Leader, Library Team
GRAPHISOFT SE -
November 8, 2016 at 19:52 #2848Daniel VirticParticipant
Thank you so much for all your Help – And apologize for missing the Toppic Name.
Here is the purpose of having that array parameter. I need the user to have the possibility to change the Glass Panels based on he’s needs, if make sense.
Please follow these Links:https://www.youtube.com/watch?v=_acFfT6v80U
https://www.youtube.com/watch?v=HWUbOxksu2M
AC20 USA
•Workstation HP Z800 2 x Intel Xeon Quad Core E5620/E5630, 36 GB ram DDR3 - NVIDIA QUADRO 4000 2 GB memory, Windows 10 pro -
July 18, 2017 at 23:48 #3400Kristian BursellParticipant
Hi Daniel,
Did you resolve this successfully. I use the loop functions like Gergely described though i do it with invisible/local arrays which i use to populate the visible/parameter array as it allows the array to expand and shrink. When I started doing this a few years ago I had to do it this way to get the array to shrink.
CADSWIFT
Australia
-
-
AuthorPosts
- The forum ‘General discussions’ is closed to new topics and replies.