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

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

danezeq
Collaborator Collaborator
2,342件の閲覧回数
13件の返信
メッセージ1/14

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

danezeq
Collaborator
Collaborator

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,

0 件のいいね
解決済み
2,343件の閲覧回数
13件の返信
返信 (13)
メッセージ2/14

hmunsell
Mentor
Mentor

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


0 件のいいね
メッセージ3/14

danezeq
Collaborator
Collaborator

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.

0 件のいいね
メッセージ4/14

ToanDN
Consultant
Consultant
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.
0 件のいいね
メッセージ5/14

hmunsell
Mentor
Mentor

sorry, i misunderstood 🙂

 

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


0 件のいいね
メッセージ6/14

danezeq
Collaborator
Collaborator

Thanks.

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

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

0 件のいいね
メッセージ7/14

ToanDN
Consultant
Consultant
解決済み
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, "#", " ")
0 件のいいね
メッセージ8/14

danezeq
Collaborator
Collaborator

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.

0 件のいいね
メッセージ9/14

martijn_pater
Advisor
Advisor

@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).

メッセージ10/14

danezeq
Collaborator
Collaborator

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

0 件のいいね
メッセージ11/14

ToanDN
Consultant
Consultant
解決済み
Don't remove, just hide it.
0 件のいいね
メッセージ12/14

danezeq
Collaborator
Collaborator

How can i hide it?

0 件のいいね
メッセージ13/14

ToanDN
Consultant
Consultant
Format tab, hide; or right click on the column and hide.
0 件のいいね
メッセージ14/14

danezeq
Collaborator
Collaborator

it did the trick. awesome.

0 件のいいね