Revit Architecture Forum
Welcome to Autodesk’s Revit Architecture Forums. Share your knowledge, ask questions, and explore popular Revit Architecture topics.
abbrechen
Suchergebnisse werden angezeigt für 
Anzeigen  nur  | Stattdessen suchen nach 
Meintest du: 

Improper use of boolean in Revit 2018.2

14 ANTWORTEN 14
GELÖST
Antworten
Nachricht 1 von 15
Jason_S
12116 Aufrufe, 14 Antworten

Improper use of boolean in Revit 2018.2

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.

 

14 ANTWORTEN 14
Nachricht 2 von 15
ToanDN
als Antwort auf: Jason_S

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.

Nachricht 3 von 15
Corsten.Au
als Antwort auf: Jason_S

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
Nachricht 4 von 15
Viveka_CD
als Antwort auf: Jason_S

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,

Nachricht 5 von 15
Radish_G
als Antwort auf: Corsten.Au

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
Nachricht 6 von 15
Corsten.Au
als Antwort auf: Radish_G

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
Nachricht 7 von 15
Radish_G
als Antwort auf: Corsten.Au

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
Nachricht 8 von 15
bin
Advisor
als Antwort auf: Radish_G

One of the parameters might not be length...

Nachricht 9 von 15
Radish_G
als Antwort auf: bin

Hi @bin,

Thanks for your reply.

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

Regards
Radish G
Nachricht 10 von 15
Anonymous
als Antwort auf: Radish_G

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

Nachricht 11 von 15
Radish_G
als Antwort auf: Anonymous

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
Nachricht 12 von 15
Anonymous
als Antwort auf: Radish_G

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.

Nachricht 13 von 15
Radish_G
als Antwort auf: Anonymous

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
Nachricht 14 von 15
Anonymous
als Antwort auf: Radish_G

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.

Nachricht 15 von 15
Radish_G
als Antwort auf: Anonymous

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

Sie finden nicht, was Sie suchen? Fragen Sie die Community oder teilen Sie Ihr Wissen mit anderen.

In Foren veröffentlichen  

Autodesk Design & Make Report