Revit Architecture Forum
Welcome to Autodesk’s Revit Architecture Forums. Share your knowledge, ask questions, and explore popular Revit Architecture topics.
abbrechen
Suchergebnisse werden angezeigt für 
Anzeigen  nur  | Stattdessen suchen nach 
Meintest du: 

Parameter formula with limit

6 ANTWORTEN 6
GELÖST
Antworten
Nachricht 1 von 7
DanielLemen
5469 Aufrufe, 6 Antworten

Parameter formula with limit

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.

6 ANTWORTEN 6
Nachricht 2 von 7
DanielLemen
als Antwort auf: DanielLemen

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))

Nachricht 3 von 7
ToanDN
als Antwort auf: DanielLemen

That is correct.  Give yourself a hi-five :zwinkerndes_Gesicht:

Nachricht 4 von 7
chrisplyler
als Antwort auf: DanielLemen

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.

 

Nachricht 5 von 7
Anonymous
als Antwort auf: chrisplyler

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.

Nachricht 6 von 7
arktide
als Antwort auf: DanielLemen

^ limits would be nice.

Nachricht 7 von 7
drudderKAP
als Antwort auf: Anonymous

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.

In Foren veröffentlichen  

Autodesk Design & Make Report