Revit 2022 - IF/Boolean statements

Revit 2022 - IF/Boolean statements

mike_key
Contributor Contributor
309 Views
2 Replies
Message 1 of 3

Revit 2022 - IF/Boolean statements

mike_key
Contributor
Contributor

I have a sink family that has two faucet options: Standard as Wrist Blades, or an Electric Sensor faucet. I have two visibility parameters that will hide one faucet or the other just fine. However, Once I show the Sensor faucet, I need to add a note in my type comments column of my schedule. Revit does not like ChatGPT's formula...

 

All help would be appreciated.

 

mike_key_0-1738259247787.png

 

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

RDAOU
Mentor
Mentor
Accepted solution

 

@mike_key 

 

Try this 

 

if(Sensor Faucet, "K.E.C. TO PROVIDE FISHER #FAFB-HW-SBSE ELECTRONIC SENSOR SPLASH MOUNTED FAUCET", "")

 

 

if(Sensor Faucet, "K.E.C. TO PROVIDE FISHER #FAFB-HW-SBSE ELECTRONIC SENSOR SPLASH MOUNTED FAUCET", "")

 

 

Why ChatGPT formula did not work... A boolean in revit should either resualt a true or a false .... 1 & 0would work in other programing languages  but in revit they are not a valied arguement. In revit you need to use arguemens such as

 

  • 2>1  means True
  • 2<1 means False
  • 1=1 means True
  • 1=0 means False

 

Or simply use

for True:     = Sensor Faucet

for False:    = not(Sensor Faucet)

 

YOUTUBE | BIM | COMPUTATIONAL DESIGN | PARAMETRIC DESIGN | GENERATIVE DESIGN | VISUAL PROGRAMMING
If you find this reply helpful kindly hit the LIKE BUTTON and if applicable please ACCEPT AS SOLUTION


0 Likes
Message 3 of 3

mike_key
Contributor
Contributor

Thank you so much...

0 Likes