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 expressions

10 ANTWORTEN 10
GELÖST
Antworten
Nachricht 1 von 11
msosaMVWKG
1534 Aufrufe, 10 Antworten

Improper use of boolean expressions

Hello!

I get the Improper use of boolean expressions message, i dont know how to make it work.

IF (Number = 26, Area / 2, Area)

where Number is the room number. I want specific rooms to be divided by 2 for their final area.

Thanks!

Capture schedule.PNG

10 ANTWORTEN 10
Nachricht 2 von 11
rxi.gg
als Antwort auf: msosaMVWKG

What type of parameter 'Number' is?

Roi G. | AUTODESK REVIT & DYNAMO EXPERT

Da un "Me gusta" si la respuesta te ha resultado útil y acéptala como solución si ha resuelto tu duda.
Give a "Like" if the answer has been useful to you and accept it as a solution if it has solved your doubt.

Nachricht 3 von 11
msosaMVWKG
als Antwort auf: rxi.gg

Its the room number (in the room tag), does that make it a text or integer?

Nachricht 4 von 11
rxi.gg
als Antwort auf: msosaMVWKG

That type of parameter doesn't work in calculated value.

you have to create a Number-type parameter and it works

 

1.png2.png

Roi G. | AUTODESK REVIT & DYNAMO EXPERT

Da un "Me gusta" si la respuesta te ha resultado útil y acéptala como solución si ha resuelto tu duda.
Give a "Like" if the answer has been useful to you and accept it as a solution if it has solved your doubt.

Nachricht 5 von 11
msosaMVWKG
als Antwort auf: rxi.gg

The formula works! however, i dont get that other window with the categories where you choose "Habitaciones". I get an empty column on my schedule

Nachricht 6 von 11
msosaMVWKG
als Antwort auf: rxi.gg

Nevermind its working now! I had to edit the idd in the room tag that i wanted. Thank you so much!!

Nachricht 7 von 11
rxi.gg
als Antwort auf: msosaMVWKG

You have to edit the parameter in every room :leicht_lächelndes_Gesicht:

 

Roi G. | AUTODESK REVIT & DYNAMO EXPERT

Da un "Me gusta" si la respuesta te ha resultado útil y acéptala como solución si ha resuelto tu duda.
Give a "Like" if the answer has been useful to you and accept it as a solution if it has solved your doubt.

Nachricht 8 von 11
rxi.gg
als Antwort auf: msosaMVWKG

great! 

Please accept it as a solution if it has solved your doubt!

Roi G. | AUTODESK REVIT & DYNAMO EXPERT

Da un "Me gusta" si la respuesta te ha resultado útil y acéptala como solución si ha resuelto tu duda.
Give a "Like" if the answer has been useful to you and accept it as a solution if it has solved your doubt.

Nachricht 9 von 11
msosaMVWKG
als Antwort auf: rxi.gg

Quick question, how do i write the statement if there are more numbers i want to choose? for example, I want that the formula divides the area by 2 for specific items on the list with idd 26, 28, 30 and 32. Capture schedule 2.PNG

Nachricht 10 von 11
ToanDN
als Antwort auf: msosaMVWKG


@msosaMVWKG wrote:

Quick question, how do i write the statement if there are more numbers i want to choose? for example, I want that the formula divides the area by 2 for specific items on the list with idd 26, 28, 30 and 32. Capture schedule 2.PNG


If you do it that way your formula will get very long and prone to errors.

 

Just add a yes/no parameter to the schedule, name it Half Area, tick it for any rows need to be divided by 2, untick for the rest, then use the formula:

if (Half Area, Area/2, Area)

Nachricht 11 von 11
rxi.gg
als Antwort auf: msosaMVWKG

Do it with a yes/no parameter

1.png2.png

Roi G. | AUTODESK REVIT & DYNAMO EXPERT

Da un "Me gusta" si la respuesta te ha resultado útil y acéptala como solución si ha resuelto tu duda.
Give a "Like" if the answer has been useful to you and accept it as a solution if it has solved your doubt.

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