2021-07-13 08:44 AM - last edited on 2021-09-14 09:00 AM by Noemi Balogh
DIM myArray[][] myArray[1][1] = 500 myArray[1][2] = 510 myArray[2][1] = 600 myArray[2][2] = 610 myArray[2][3] = 620 myArray[3][1] = 700 myArray[3][2] = 710 myArray[3][3] = 720 myArray[3][4] = 730VARDIM1(myArray[1])
2021-07-13 11:17 AM
2021-07-13 11:45 AM
2021-07-13 11:58 AM
2021-07-13 12:14 PM
dushyant wrote:Not so many just one to declare the whole thing (5 line loop statement) and then one populating the values with whatever logic you require. The master script of Infinite Openings is laden with declared and then populated arrays. The tool must dynamic shift between varying configurations via the catalogues and this issue was one that would break it many times until I finally ironed out the last not fully declared array, luckily some time ago.
This would mean so many repeated loops and copies of arrays.
2021-07-13 12:19 PM
2021-07-13 01:23 PM
Kristian wrote:Ok, thanks.
also when you do declare your array, invert the loop doing for example: for i = arrayDim1 to 1 step -1
It makes it generate faster because you have already set the full dimension in the first run of the loop.
2021-07-14 07:49 AM
Kristian wrote:Did not know this! But hell yes! Makes so much sense!
also when you do declare your array, invert the loop doing for example: for i = arrayDim1 to 1 step -1
It makes it generate faster because you have already set the full dimension in the first run of the loop.
2021-07-14 08:20 AM
SenecaDesignLLC wrote:I got that bit of gold directly from Gergely Feher (when I visited GSHQ) while he was advising me on ways to speed up Infinite Openings; it made a massive difference!
Kristian wrote:Did not know this! But hell yes! Makes so much sense!
also when you do declare your array, invert the loop doing for example: for i = arrayDim1 to 1 step -1
It makes it generate faster because you have already set the full dimension in the first run of the loop.
2021-07-14 10:01 AM
2021-07-14 10:57 AM
Podolsky wrote:What is 'Open Source GDL'? I thought there was only one GDL (by Graphisoft)
... Maybe just write all these rules in Open Source GDL post?