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: 

Length Parameter formula. Width can not exceed Height.

1 ANTWORT 1
Antworten
Nachricht 1 von 2
rlo6LRKS
1455 Aufrufe, 1 Antwort

Length Parameter formula. Width can not exceed Height.

Hi everyone! 

Is there a formula that limits one parameter (Width) in accordance with another (Height). 

I have a furniture family, where the end user can edit both Height and Width. But I want to insert a formula that does not allow them to put a Width that's bigger than Height. I am using Revit 2018.

 

I tried with this: 
        =if(Condition, Result-if-true, Result-if-false) 

e.g. =if(Width>Height, Height, Width) 

But since I don't have a Min and Max value this does not really apply. 

Beschriftungen (3)
1 ANTWORT 1
Nachricht 2 von 2
barthbradley
als Antwort auf: rlo6LRKS

So you want two Width Parameters - one where the user enters a value and the second one has the formula and drives the actual dimension. 

 

Width 1 (User-Entered Value)=10

Width  2 (drives the Dimension the changes the width of the geometry)=If(Width 1>Height, Height, Width 1)

 

....you can do Min/Max this way: =if(or(Width 1<5, Width 1>10), Height, Width 1) 

 

Revit Formulas for "everyday" usage (revitforum.org)

 

 

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