Revit parameter formula if and

Revit parameter formula if and

esvitasheva
Contributor Contributor
865 Views
3 Replies
Message 1 of 4

Revit parameter formula if and

esvitasheva
Contributor
Contributor

Hi everyone,

 

I am trying to set up formula which will give me few options for total height ( I need 6 options)

I found IF AND formula the best, but it works perfect only with one condition AND

if(and([Рама 34/59], [Створка 48/33]), 92 мм, 0 мм)

 

I need something like this! but it doesnt workS:

total height = if(and([Рама 34/59], [Створка 48/33]), 92 мм, if (and([Рама 34/59], [Створка 50/41]), 100 мм, 0 мм, if (and([Рама 44/69], [Створка 50/41]), 110 мм, 0 мм)))

 

esvitasheva_0-1617202574386.png

 

0 Likes
Accepted solutions (1)
866 Views
3 Replies
Replies (3)
Message 2 of 4

barthbradley
Consultant
Consultant
Accepted solution

Conditional statements can contain numeric values, numeric parameter names, and Yes/No parameters.

 

 

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

 

...are you receiving an inconsistent units error?

 

Revit - Inconsistent Units and how to neutralize them. (revitforum.org)

 

Try this: 

 

 if(and([Рама 34/59], [Створка 48/33]), 92 мм, if (and([Рама 34/59], [Створка 50/41]), 100 мм, if (and([Рама 44/69], [Створка 50/41]), 110 мм, 0 мм)))

 

0 Likes
Message 3 of 4

barthbradley
Consultant
Consultant

 if(and([Рама 34/59], [Створка 48/33]), 92 мм, if (and([Рама 34/59], [Створка 50/41]), 100 мм, 0 мм, if (and([Рама 44/69], [Створка 50/41]), 110 мм, 0 мм)))

 

0 Likes
Message 4 of 4

esvitasheva
Contributor
Contributor

Thank you! It works!

0 Likes