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: 

Conditional statement(text) in Tag

7 ANTWORTEN 7
GELÖST
Antworten
Nachricht 1 von 8
Anonymous
2129 Aufrufe, 7 Antworten

Conditional statement(text) in Tag

Hi everybody,

 

I'm trying to do a tag with a conditional statement in a formula.

Can I do something like that?

Capture.PNG

 

I wouldn't like to show the quality value in the tag when this value is equal to "C30/37" in a column.

 

Thank you in advance

 

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

Text parameters cannot be used to drive a formula.
Nachricht 3 von 8
martijn_pater
als Antwort auf: Anonymous

You need an on/off shared parameter "C30/37". Then a text shared parameter which checks the other.

<C30/37 on/off parameter> = true / false
<text parameter> = if (<C30/37>, " ", "quality strenght")
...or if(not(<C30/37>),"quality strenght"," ")

Nachricht 4 von 8
RDAOU
als Antwort auf: Anonymous

 

The principle as mentioned by @martijn_pater is correct, however, use a different naming style for parameters

  • you cannot name parameters using special characters > < [ ] : ? \ 
  • you shouldn't include computational syntax in parameters name     - + / * 

YOUTUBE | BIM | COMPUTATIONAL DESIGN | PARAMETRIC DESIGN | GENERATIVE DESIGN | VISUAL PROGRAMMING
If you find this reply helpful kindly hit the LIKE BUTTON and if applicable please ACCEPT AS SOLUTION


Nachricht 5 von 8
martijn_pater
als Antwort auf: RDAOU


@RDAOU wrote:

 

The principle as mentioned by @martijn_pater is correct, however, use a different naming style for parameters

  • you cannot name parameters using special characters > < [ ] : ? \ 
  • you shouldn't include computational syntax in parameters name     - + / * 

Ha, that's funny.:) Those are just <input parameter here> brackets, I guess someone could misread those... 

Nachricht 6 von 8
RDAOU
als Antwort auf: martijn_pater

...

YOUTUBE | BIM | COMPUTATIONAL DESIGN | PARAMETRIC DESIGN | GENERATIVE DESIGN | VISUAL PROGRAMMING
If you find this reply helpful kindly hit the LIKE BUTTON and if applicable please ACCEPT AS SOLUTION


Nachricht 7 von 8
martijn_pater
als Antwort auf: RDAOU

...as to say you are right to point that out. Also I think I switched the text returned by the if statement, so let me rephrase and use some color;

You need an on/off parameter, let's say MySharedParameter1. And another text parameter, let's say MySharedParameter2. Shared parameters for scheduling.

MySharedParameter1 = true / false
MySharedParameter2 = if (MySharedParameter1 ,"quality strenght", " ")
...or if(not(MySharedParameter1 )," ","quality strenght")


Feel free to mark as solution and @RDAOU in addition. ^^

Nachricht 8 von 8
Anonymous
als Antwort auf: martijn_pater

Then, I need another parameter.

Ok. Thank you all.

 

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