We value your input! Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey
2024-07-03 05:25 PM - last edited on 2024-07-05 04:40 AM by Laszlo Nagy
Hi, I am trying to use VALUES to limit the input of parameters mn1 and mn2 to be greater than zero, so that I don't get errors in my 2D script. I set up the Values range in my parameter script, and they do seem to be preventing me from imputing a zero while I am within the object editor. When I actually load the object a project it will still let me enter a zero. Does anyone know why this might be happening? Thanks
VALUES "mn1" RANGE (0,)
VALUES "mn2" RANGE (0,)
Solved! Go to Solution.
2024-07-03 05:47 PM
I cannot reproduce that. You can type it in, but Archicad will always swap it out for the next possible number.
The screenshot shows exactly that. It's a hint, that you can only type in numbers greater than 0.
If you do not like that, do this instead:
VALUES "mn1" RANGE [1,)
2024-07-03 05:47 PM
I cannot reproduce that. You can type it in, but Archicad will always swap it out for the next possible number.
The screenshot shows exactly that. It's a hint, that you can only type in numbers greater than 0.
If you do not like that, do this instead:
VALUES "mn1" RANGE [1,)
2024-07-03 06:16 PM
That's what I thought, it was getting swapped out for a number great than 0 in the object itself, but once I had it in a project the value was no longer being swapped out. I attached a screen recording just for reference. I tried changing the range value to a number greater than zero, like 3, and it still would bump it up to a 4 in the object, but in the project it would behave like its greater than or equal to 3.
Changing it to actually be greater than or equal to 1 did the trick though, thanks for the help.