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: 

Wrong formula

7 ANTWORTEN 7
Antworten
Nachricht 1 von 8
yes_and_no
327 Aufrufe, 7 Antworten

Wrong formula

hnA__20220425_090222.jpg

Guys, I would like to get area of certain rooms reported as if "notes" is "area of work", if not then report zero. It won't work for me. Anyone ?

7 ANTWORTEN 7
Nachricht 2 von 8
ToanDN
als Antwort auf: yes_and_no

You cannot use a text parameter to drive a formula.  Try an integer / yes no /  number parameter instead.

Nachricht 3 von 8
barthbradley
als Antwort auf: yes_and_no

Formulas can't reference text.  Numerical values or Yes/No only. 

Nachricht 4 von 8
barthbradley
als Antwort auf: yes_and_no

bump.  

Nachricht 5 von 8
yes_and_no
als Antwort auf: ToanDN

I created y/n "NIC" to room property.
Then make Area of work = if(NIC="No", Area, "0"). Still not working.
Nachricht 6 von 8
barthbradley
als Antwort auf: yes_and_no

Conditional statements can contain numeric values, numeric parameter names, and Yes/No parameters.

 

Revit Formulas for "everyday" usage - Revit Forum

Nachricht 7 von 8
ToanDN
als Antwort auf: yes_and_no


@yes_and_no wrote:
I created y/n "NIC" to room property.
Then make Area of work = if(NIC="No", Area, "0"). Still not working.

Area of Work = If (NIC, Area, 0)

Nachricht 8 von 8
barthbradley
als Antwort auf: barthbradley

=if(NIC, 1,2) means if NIC is CHECKED, return 1, otherwise return 2. 

 

=if(not(NIC), 1,2) means if NIC is NOT CHECKED, return 1, otherwise return 2. 

 

 

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