Wrong formula

Wrong formula

yes_and_no
Collaborator Collaborator
641 Views
7 Replies
Message 1 of 8

Wrong formula

yes_and_no
Collaborator
Collaborator

hnA__20220425_090222.jpg

Guys, I would like to get area of certain rooms reported as if "notes" is "area of work", if not then report zero. It won't work for me. Anyone ?

0 Likes
642 Views
7 Replies
Replies (7)
Message 2 of 8

ToanDN
Consultant
Consultant

You cannot use a text parameter to drive a formula.  Try an integer / yes no /  number parameter instead.

0 Likes
Message 3 of 8

barthbradley
Consultant
Consultant

Formulas can't reference text.  Numerical values or Yes/No only. 

0 Likes
Message 4 of 8

barthbradley
Consultant
Consultant

bump.  

0 Likes
Message 5 of 8

yes_and_no
Collaborator
Collaborator
I created y/n "NIC" to room property.
Then make Area of work = if(NIC="No", Area, "0"). Still not working.
0 Likes
Message 6 of 8

barthbradley
Consultant
Consultant

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

 

Revit Formulas for "everyday" usage - Revit Forum

0 Likes
Message 7 of 8

ToanDN
Consultant
Consultant

@yes_and_no wrote:
I created y/n "NIC" to room property.
Then make Area of work = if(NIC="No", Area, "0"). Still not working.

Area of Work = If (NIC, Area, 0)

0 Likes
Message 8 of 8

barthbradley
Consultant
Consultant

=if(NIC, 1,2) means if NIC is CHECKED, return 1, otherwise return 2. 

 

=if(not(NIC), 1,2) means if NIC is NOT CHECKED, return 1, otherwise return 2. 

 

 

0 Likes