Text formula

Text formula

tbrown6608
Enthusiast Enthusiast
1,908 Views
2 Replies
Message 1 of 3

Text formula

tbrown6608
Enthusiast
Enthusiast

I have been trying to get this to work:

 

if(Offset = "Left", 1'-0", if(Offset = "Right", 3'-0", if(Offset = "Center", 2'-0", 2'-0")))

 

Offset is a text parameter, I am apply this formula to a length parameter. Revit tells me "Improper use of boolean expression" I have also tried using commas instead of equals signs and when I do that Revit tells me "Bad IF-statement format. It should be IF(<boolean>, <result-if-true>, <result-if-false>)." Can someone please tell me what I am doing wrong?

0 Likes
Accepted solutions (1)
1,909 Views
2 Replies
Replies (2)
Message 2 of 3

CoreyDaun
Mentor
Mentor
Accepted solution

You're not doing anything wrong - Revit does not understand or permit a Text parameter to be used in a conditional statement. There is A LOT of improvement needed with the formulas. I would be happy to help you find workarounds if you wish! I've had to do so many times myself...

Corey D.                                                                                                                  ADSK_Logo_EE_2013.png    AutoCAD 2014 User  Revit 2014 User
──────────────────────────────────────────────────────────────────────
⁞|⁞ Please use Mark Solutions!.Accept as Solution and Give Kudos!Give Kudos as appropriate to further enhance these forums. Thank you!
0 Likes
Message 3 of 3

tbrown6608
Enthusiast
Enthusiast

Thank you. I will be able to figure out a work around for this it will just require a few more parameters to do what I need to do.

0 Likes