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

UI_INFIELD Problems

Anonymous
Not applicable
I have an annoying problem that I can't solve, hopefully someone else can. In this UI script:

UI_DIALOG "Fire Exit Signs",444,266

UI_PAGE 1

UI_INFIELD "sign_ty" !parameter name
0,0 !x,y position
419,250 !width, height
1 !versionFlag
fire_exits.tif !pictName
9 !nrImages
3 !nrRows
140, 90 !cellX, cellY
133, 83 !imageX, imageY
1,`North`,
2,`South`,
3,`East`,
4,`West`,
5,`North West`,
6,`South West`,
7,`North East`,
8,`South East`,
9,'No Arrow'
I'm getting an error at line 5 (the bold one) that there are missing parameters. But there shouldn't be. The parameter name is exactly the same as in the Parameters window, 2D script and parameters script, where it works. What's even more confusing is I've basically just copied this script from another one I did earlier, which works?

I'm sure I'm missing something very basic...
3 REPLIES 3
Laszlo Nagy
Community Admin
Community Admin
What happens if you remove all those comments from the command? I wonder if they are the source of the problem.
Loving Archicad since 1995 - Find Archicad Tips at x.com/laszlonagy
AMD Ryzen9 5900X CPU, 64 GB RAM 3600 MHz, Nvidia GTX 1060 6GB, 500 GB NVMe SSD
2x28" (2560x1440), Windows 10 PRO ENG, Ac20-Ac28
Frank Beister
Moderator
You may insert comments in multi-line commands, but you have to keep the syntax:
UI_INFIELD "sign_ty", !parameter name
0,0, !x,y position
419,250, !width, height
1, !versionFlag
"fire_exits.tif", !pictName
9, !nrImages
3, !nrRows
140, 90, !cellX, cellY
133, 83, !imageX, imageY
1,`North`,
2,`South`,
3,`East`,
4,`West`,
5,`North West`,
6,`South West`,
7,`North East`,
8,`South East`,
9,'No Arrow' 
This should work.
bim author since 1994 | bim manager since 2018 | author of selfGDL.de | openGDL | skewed archicad user hall of fame | author of bim-all-doors.gsm
Anonymous
Not applicable
Excellent - it works now. Thanks!