Yes/No Parameter to Modify Dimension

Yes/No Parameter to Modify Dimension

Anonymous
Not applicable
1,581 Views
6 Replies
Message 1 of 7

Yes/No Parameter to Modify Dimension

Anonymous
Not applicable

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? 

 

 

0 Likes
1,582 Views
6 Replies
Replies (6)
Message 2 of 7

L.Maas
Mentor
Mentor

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.

0 Likes
Message 3 of 7

Secttor
Collaborator
Collaborator

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
Message 4 of 7

Ilic.Andrej
Advisor
Advisor

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

Message 5 of 7

barthbradley
Consultant
Consultant

@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.  

0 Likes
Message 6 of 7

ToanDN
Consultant
Consultant

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

 

Capture.PNG

0 Likes
Message 7 of 7

barthbradley
Consultant
Consultant

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

0 Likes