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: 

Yes/No Parameter to Modify Dimension

6 ANTWORTEN 6
Antworten
Nachricht 1 von 7
Anonymous
1408 Aufrufe, 6 Antworten

Yes/No Parameter to Modify Dimension

Hi,

 

I'm trying to learn parameters in Revit family. I'm creating a parametric cabinet and I want to modify the door height through a Yes/No parameter.

Parameter name is Cover Covelight, so if Yes, I want the door height to extend downwards to cover the height of covelight fascia, if No, the door height should remain the same.

I tried IF(Cover Covelight, Door Height + Covelight Height, Door Height) but I get "inconsistent units".

 

Any ideas? 

 

 

6 ANTWORTEN 6
Nachricht 2 von 7
L.Maas
als Antwort auf: Anonymous

Check the units of the parameters used. Possibly you have mixed units (e.g length and number)

Louis

EESignature

Please mention Revit version, especially when uploading Revit files.

Nachricht 3 von 7
Secttor
als Antwort auf: Anonymous

hi @Anonymous

You need to fill in the formula for the parameter that moves the Door.. probably Door Height..

so the formula for Door Height would be : if(Cover Covelight, 810 + Covelight Height, 810)

Cover Covelight formula remains empty. 

 

Hope this helps. 

Revit MEP - Electrical Certified Professional
Revit MEP - Mechanical Certified Professional

Draftworks.wordpress.com
Nachricht 4 von 7
Ilic.Andrej
als Antwort auf: Anonymous

As I can see in this picture, you re assigning the formula to "Cover Covelight", but you want to use "Cover Covelight" as a condition. That makes no sense.

 

Asian the formula to other parameter. "True Height" for example. Constrain dimension with that parameter.

 

"True Height" must be Length parameter. That way you wont get "Inconsistent Units"

 

"Cover Covelight" is yes/no parameter, but it is used to create a condition in a formula. So, don't apply formula to "Cover Covelight" . 



Andrej Ilić

phonetical: ændreɪ ilich
MSc Arch

Autodesk Expert Elite Alumni

Nachricht 5 von 7
barthbradley
als Antwort auf: Ilic.Andrej

@Ilic.Andrej: I don't understand. The IF formula is only evaluating the condition of "Cover Covelight" (e.g. is it checked?); why would it matter how it got checked? In this case, it's automatically checked (or unchecked) if certain condition exists.  No user input required. 

 

 

...The formula "IF(Cover Covelight, Door Height + Covelight Height, Door Height)" is valid and should work if the parameter is it driving is a length parameter.  

Nachricht 6 von 7
ToanDN
als Antwort auf: barthbradley

OP entered the formula in the Yes/No parameter itself, which is wrong.

 

Capture.PNG

Nachricht 7 von 7
barthbradley
als Antwort auf: ToanDN

Well then, that would explain it. I didn't realize that was where the OP was trying to put the if statement. 

 

My apologies @Ilic.Andrej

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