We value your input! Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey
2023-06-15 05:39 PM
Solved! Go to Solution.
2023-06-15 06:06 PM
I use the following routine mostly always:
! MASTER-SCRIPT
DIM _typ_best_text[], _typ_best_pic[], _typ_best_value[]
i = 1
_typ_best_text[i] = "Schnitt 1 b" : _typ_best_pic[i] = "" : _typ_best_value[i] = i : i = i + 1
_typ_best_text[i] = "Schnitt 1 c" : _typ_best_pic[i] = "" : _typ_best_value[i] = i : i = i + 1
_typ_best_text[i] = "Schnitt 2 e" : _typ_best_pic[i] = "" : _typ_best_value[i] = i : i = i + 1
_typ_best_text[i] = "Schnitt 11 f" : _typ_best_pic[i] = "" : _typ_best_value[i] = i : i = i + 1
! ---------------------------------------------------------------------- !
! PARAMETER-SCRIPT
VALUES{2} "int_typ_best", _typ_best_value, _typ_best_text
! INTERFACE-SCRIPT
UI_OUTFIELD "Bestückungstyp", dx, dy + dyO, outL, outH, 1
UI_INFIELD{3} "int_typ_best", dx2, dy, inL, inH,
8, "",
0, 0, 0, 0, 0, 0,
_typ_best_pic, _typ_best_text, _typ_best_value
dy = dy + led
! ......................... !
2023-06-15 06:06 PM
I use the following routine mostly always:
! MASTER-SCRIPT
DIM _typ_best_text[], _typ_best_pic[], _typ_best_value[]
i = 1
_typ_best_text[i] = "Schnitt 1 b" : _typ_best_pic[i] = "" : _typ_best_value[i] = i : i = i + 1
_typ_best_text[i] = "Schnitt 1 c" : _typ_best_pic[i] = "" : _typ_best_value[i] = i : i = i + 1
_typ_best_text[i] = "Schnitt 2 e" : _typ_best_pic[i] = "" : _typ_best_value[i] = i : i = i + 1
_typ_best_text[i] = "Schnitt 11 f" : _typ_best_pic[i] = "" : _typ_best_value[i] = i : i = i + 1
! ---------------------------------------------------------------------- !
! PARAMETER-SCRIPT
VALUES{2} "int_typ_best", _typ_best_value, _typ_best_text
! INTERFACE-SCRIPT
UI_OUTFIELD "Bestückungstyp", dx, dy + dyO, outL, outH, 1
UI_INFIELD{3} "int_typ_best", dx2, dy, inL, inH,
8, "",
0, 0, 0, 0, 0, 0,
_typ_best_pic, _typ_best_text, _typ_best_value
dy = dy + led
! ......................... !
2023-06-16 03:27 AM
Looks like something you would use PUT GET for.
For i = 1 to drawers
PUT i, _stDrawerType[i], value[i]
next i
Do note I have no experience with infield{3} or using the put command with arrays.
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 |
2023-06-16 09:40 AM
perfect, thank you!
This is exactly what I was looking for. It worked like a charm.
2023-06-16 09:55 AM
thank you for your suggestion.
This is a good idea but I could not manage it with infield{3} and the arrays.