I'm new to Revit and how it's formulas is workin.
I would like to know how I make a "length" parameter that is going to have a limit between 100-500mm. You could only typ in a value betwen 100 and 500.
I know this is an easy question for you all there who works with Revit daily.
Gelöst! Gehe zur Lösung
Gelöst von DanielLemen. Gehe zur Lösung
I have an answer, that I don't like.. but is there an easier answer on my question let me know!
Add parameters:
user_value:
min_value:
max_value:
actual_value:
Formula:
actual_value = if (user_value < min_value, min_value, if (user_value > max_value, max_value, user_value))
Yes, if you need the user to set his own min/max values. If the min/max values are permanently fixed, then just use them directly in the formula and get rid of the min/max parameters.
Sorry guys,
Everytime I see a solution like this I want to cry or rant. I'm sure there are others who have had experience with other BIM platforms that feel the same. So I guess I'll rant.
We should not have to use work-arounds like this to accommodate poor code/ui-design.
It would be so much easier to use a basic-like code eg: IF X>Y THEN X = Y. Done.
Infact GDL form Archicad (circa over 15 years ago) as archaic as it is, is so much easier than wrangling Revit formulaes to do what you want them to do.
I do not understand why they make it so hard.
Happy to have my mind changed here.
better yet, in archicad you can simply make the parameter type be an options list with only the values you want to allow (if they are fixed)
It's just INFURIATINGLY UNBELIEVABLE how LIMITED revit formula syntax and parameter types are compared to Archicad. Archicad allows you to achieve practically any logic scenario you can imagine with such ease and minimal complexity - its just beautiful in this regard ( but also infuriating on other ways haha).
Sie finden nicht, was Sie suchen? Fragen Sie die Community oder teilen Sie Ihr Wissen mit anderen.