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?
Check the units of the parameters used. Possibly you have mixed units (e.g length and number)
Louis
Please mention Revit version, especially when uploading Revit files.
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.
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
@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.
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.