Inconsistent Units in boolean Yes/No formula

Anonymous

Inconsistent Units in boolean Yes/No formula

Anonymous
Not applicable

Hello, I am tying to build a family in Revit 2013. I want to use a Yes/No parameter to control a dimension based paramater's length so I can decide if it is flush with the surface or if it bumps out.

 

The formula is as follows:

 

IF (Flush_Mount, Flush = 1in, Flush = 0in)

 

Flush_Mount is the Yes/No parameter with a default value of no (uncheked box). 

 

Flush is the parameter tied to the dimension and it's default is 3/8". Ideally I would like to make it work so that the object extends 3/8", not the full inch, but I removed the decimals and fractions for troubleshooting purposes (all of my coding experience was gained in the past 20 minutes trying to work this formula out). The formula in question is set up in the Flush parameter.

 

The problem is it keeps spitting out the "Inconsistent Units" error and I have no clue why, even after some digging.

 

I have attached the Family in question. 

 

Any help or advise would be fantastic. 

 

 

0 Likes
Reply
Accepted solutions (1)
1,123 Views
2 Replies
Replies (2)

L.Maas
Mentor
Mentor
Accepted solution

Something like this should work:

if(Flush_Mount, 1, 0)

Louis

EESignature

Please mention Revit version, especially when uploading Revit files.

Anonymous
Not applicable
Wow I was overthinking that. Thanks so much!
0 Likes