We value your input! Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey
2021-05-17 05:34 PM - last edited on 2021-09-14 09:11 AM by Noemi Balogh
Solved! Go to Solution.
2021-05-18 12:07 PM
DIM fillsIndexArray[] DIM fillsNameArray[] FOR n=1 TO 1000 fillsIndexArrayAnd then this code in User Interface script:=n fillsNameArray =STR(n, 1, 0) NEXT n VALUES{2} "customFill", fillsIndexArray, fillsNameArray
DIM fillsIndexArray[] DIM fillsNameArray[] DIM pixIdxArray[] m=1 FOR n=1 TO 1000 rClass = REQUEST ("class_of_fill", n, class) IF rClass THEN IF class=3 THEN rName = REQUEST ("Name_of_fill", n, name) IF rName THEN fillsIndexArrayResult is showing on preview image. You can also add additional code to re-organise fills list, that it would follow alphabetical order. If you need help with that - I can share the script about it too.=n fillsNameArray =name pixIdxArray ='' m=m+1 ENDIF ENDIF ENDIF NEXT n UI_INFIELD{4} "customFill", 5, 65, 200, 20, 8, "", 0,0,0,0,0,0, pixIdxArray, fillsNameArray, fillsIndexArray
2021-05-17 05:49 PM
2021-05-17 05:55 PM
2021-05-17 07:18 PM
2021-05-17 10:46 PM
2021-05-18 11:02 AM
Podolsky wrote:True .... 😞
To be honest - this limitation when some requests are not working in Parameter script make a lot of nice things to do in GDL impossible.
2021-05-18 12:07 PM
DIM fillsIndexArray[] DIM fillsNameArray[] FOR n=1 TO 1000 fillsIndexArrayAnd then this code in User Interface script:=n fillsNameArray =STR(n, 1, 0) NEXT n VALUES{2} "customFill", fillsIndexArray, fillsNameArray
DIM fillsIndexArray[] DIM fillsNameArray[] DIM pixIdxArray[] m=1 FOR n=1 TO 1000 rClass = REQUEST ("class_of_fill", n, class) IF rClass THEN IF class=3 THEN rName = REQUEST ("Name_of_fill", n, name) IF rName THEN fillsIndexArrayResult is showing on preview image. You can also add additional code to re-organise fills list, that it would follow alphabetical order. If you need help with that - I can share the script about it too.=n fillsNameArray =name pixIdxArray ='' m=m+1 ENDIF ENDIF ENDIF NEXT n UI_INFIELD{4} "customFill", 5, 65, 200, 20, 8, "", 0,0,0,0,0,0, pixIdxArray, fillsNameArray, fillsIndexArray
2021-05-18 12:48 PM
2021-07-21 04:00 AM
Podolsky wrote:
You can also add additional code to re-organise fills list, that it would follow alphabetical order. If you need help with that - I can share the script about it too.
AC22-23 AUS 7000 | Help Those Help You - Add a Signature |
Self-taught, bend it till it breaks | Creating a Thread |
Win11 | i9 10850K | 64GB | RX6600 | Win10 | R5 2600 | 16GB | GTX1660 |
2021-07-21 06:04 AM
Lingwisyer wrote:Please look as Schedule Setting Tool from my library, at the end of Parameter script there is subroutine that organising arrays in alphabetical order.
Podolsky wrote:
You can also add additional code to re-organise fills list, that it would follow alphabetical order. If you need help with that - I can share the script about it too.
Hey Podolsky, how would you go about achieving this? Also, is there a way to check if a fill exists or not?
I saw this thread but do not get what is happening...
Ling.