Improper use of boolean in Revit 2018.2

Improper use of boolean in Revit 2018.2

Jason_S
Collaborator Collaborator
13,609 Views
14 Replies
Message 1 of 15

Improper use of boolean in Revit 2018.2

Jason_S
Collaborator
Collaborator

I have a parameter Door Rating that if it is filled in with 90 MIN it a tag will read A.

 

I have this:  IF(Door Rating = "90 MIN", "A", "B")  I am getting the Improper use of a Boolean when I try to hit the OK.

 

This is a Text parameter.  What am I missing.  Revit 2018.2

 

Thank you.

 

Accepted solutions (1)
13,610 Views
14 Replies
Replies (14)
Message 2 of 15

ToanDN
Consultant
Consultant

Is Fire Rating a text parameter?  Text parameters don't not work in a formula.  Create another Fire Rating as Integer parameter and use it.

Message 3 of 15

Corsten.Au
Advisor
Advisor
Accepted solution

Yes.. as @ToanDN mentioned.. 

 

here are some samples which works..

 

Simple IF: =IF (Length < 3000mm, 200mm, 300mm)

IF with a text parameter: =IF (Length > 35', “String1”, “String2”)

IF with logical AND: =IF ( AND (x = 1 , y = 2), 8 , 3 )

IF with logical OR: =IF ( OR ( A = 1 , B = 3 ) , 8 , 3 )

Embedded IF statements: =IF ( Length < 35' , 2' 6" , IF ( Length < 45' , 3' , IF ( Length < 55' , 5' , 8' ) ) )

IF with Yes/No condition: =Length > 40 (Note that both the condition and the results are implied.)

 

Cheers!

Corsten
Building Designer
Message 4 of 15

Viveka_CD
Alumni
Alumni

Hi @Jason_S

 

It's been a while and I'm checking back to see if you were able to make progress on your issue?

 

Did the suggestions by @Corsten.Au and @ToanDN help resolve your issue?

Please let us know if further assistance is required and if you have any additional questions.

 

Regards,

Message 5 of 15

Radish_G
Collaborator
Collaborator

Hi @Corsten.Au,

I got the same message while I key-in the following formula (R 2019.2). Need your guidance.

2.PNG

Regards
Radish G
0 Likes
Message 6 of 15

Corsten.Au
Advisor
Advisor

Hello 

Make sure all parameters are " Length " parameter.

Example - Unit in Meters

also instance parameters can be calculated from Type but not other way round.

ex

Length (m) - Length(m) = length (m)

Length (m) + Length(m) = length (m)

Length (m) x Length ( m) = Area ( )

Square root of  Area ( ) = Area ( )  ( Example Square root of 49 m² = Area 7m² ( it won't give you length (m)

Area ( ) / 2 ( number/integer ) = Area ( )

 

Idea is paying attention to " Units" of " Parameters "

 

 

Corsten
Building Designer
Message 7 of 15

Radish_G
Collaborator
Collaborator

Hi @Corsten.Au,

Thanks for your reply.

Can help me locate the exact error in my formula?

End Offset (mm)-(Overall Size (mm)/2)

Regards
Radish G
0 Likes
Message 8 of 15

bin
Advisor
Advisor

One of the parameters might not be length...

Message 9 of 15

Radish_G
Collaborator
Collaborator

Hi @bin,

Thanks for your reply.

Is there any way to identify the type of these system parameters?

Regards
Radish G
0 Likes
Message 10 of 15

Anonymous
Not applicable

Edit the parameter - it will show what category it is.

Message 11 of 15

Radish_G
Collaborator
Collaborator

Hi @Anonymous,

Thanks for your reply.

Are we able to do it for the System Family Parameters?

Pipe Family...,

Overall Size.PNG

Regards
Radish G
0 Likes
Message 12 of 15

Anonymous
Not applicable

Hi Radish G - yes you can check these also.

If you do not see the category then check that the discipline is set to the correct category.

Message 13 of 15

Radish_G
Collaborator
Collaborator

Hi @Anonymous ,

Thanks for your reply.

What I mean is, how to find the type of the existing parameters.

In this case, how to find the type of the "Overall Size" parameter of Pipe Insulation.

Regards
Radish G
0 Likes
Message 14 of 15

Anonymous
Not applicable

If you edit the parameter you can see the type - it will be greyed out though, as it cannot be changed.  If you need a different one you will need to create a new one.

0 Likes
Message 15 of 15

Radish_G
Collaborator
Collaborator

Hi @Anonymous,

Thanks for your reply.

This is the place where I am stuck with.

May I have a screenshot of it?

Overall Size.PNG

Regards
Radish G
0 Likes