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: 

How to display an icon within a tag, connected to a yes/no parameter

13 ANTWORTEN 13
GELÖST
Antworten
Nachricht 1 von 14
danezeq
1659 Aufrufe, 13 Antworten

How to display an icon within a tag, connected to a yes/no parameter

I can add a label of that yes/no parameter, but then revit will return "yes" or "no" text in accordiance with the parameter.

Is it possible to display a symbol if this parameter set to "yes" and not display it when it set to "no"?

 

Many thanks,

13 ANTWORTEN 13
Nachricht 2 von 14
hmunsell
als Antwort auf: danezeq

in this case i picked a door panel because that is what i had open, but should work with any element.

  • edit the family
  • select the item to turn on/off
  • pick the button to the far right of the visibility checkbox
  • make a new parameter
  • give it a name and group under
  • Ok, Ok,
  • load to project

Capture.JPG

Howard Munsell
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.



EESignature


Nachricht 3 von 14
danezeq
als Antwort auf: hmunsell

I think it doesnt answer the question.

yes/no parameter give back "yes" or "no" as it's output.

i want to replace the yes/no label with cutom text form yes and custom text for no, or with an icon (symbol)

the same goes for the schedule.

Nachricht 4 von 14
ToanDN
als Antwort auf: danezeq

If the symbol is a character then you can use a formula: if (True, "insert special characters here", " ").
If it is an actual symbol then you need to create different tag types.
Nachricht 5 von 14
hmunsell
als Antwort auf: danezeq

sorry, i misunderstood :leicht_lächelndes_Gesicht:

 

so you want to change the "Y" & "N" to something else in a schedule for a Yes/No parameter?

 

we do this in our Point Schedules. you can make a calculated parameter and set the formula to something like this IF((_AI), _DOT, ""). in this example, the AI calculated parameter refers to the _AI yes/no parameter. if the _AI yes/no parameter set to Yes, the AI parameter will return as a Dot.

 

Howard Munsell
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.



EESignature


Nachricht 6 von 14
danezeq
als Antwort auf: ToanDN

Thanks.

Did i inserted the formula correctly? and or the right place?

https://www.youtube.com/watch?v=yi65o5cddqo

Nachricht 7 von 14
ToanDN
als Antwort auf: danezeq

No.
You need a Yes/No parameter (it_is_lit) and a separate label. The yes/no parameter is for you to tick the box, the label is to output the result based on the box is ticked or not.
Edit the label and add a calculated value, it should be a text, then enter the formula:
if (it_is_lit, "#", " ")
Nachricht 8 von 14
danezeq
als Antwort auf: ToanDN

Works like a charm!

i think my mistake was i didnt pick "text" in the combo box, but "yes/no".

 

Now, the same parameter is giving the value "yes" or "no" in the schedule. is it possible to replace the word yes with another word ("Lighted" in this case) while "No" will be replaced by empty value?

 

As usual - Your solution saves me. i thank again.

Nachricht 9 von 14
martijn_pater
als Antwort auf: danezeq


@danezeq wrote:

is it possible to replace the word yes with another word ("Lighted" in this case) while "No" will be replaced by empty value?


You require a calculated field with an IF statement to return different values, something like text parameter with if(true,"Lighted", " ") (used space for empty value and "true" being the name of your yes/no parameter).

Nachricht 10 von 14
danezeq
als Antwort auf: martijn_pater

Ok it work well but only if the old yes/no parameter is included in the fields.

i dont need them both. if i remove the old field (the yes no parameter) then the new formula does nothing. the formula has to refers to that field i have to delete.

REMOV.jpg

Nachricht 11 von 14
ToanDN
als Antwort auf: danezeq

Don't remove, just hide it.
Nachricht 12 von 14
danezeq
als Antwort auf: ToanDN

How can i hide it?

Nachricht 13 von 14
ToanDN
als Antwort auf: danezeq

Format tab, hide; or right click on the column and hide.
Nachricht 14 von 14
danezeq
als Antwort auf: ToanDN

it did the trick. awesome.

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