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: 

Tag color based on parameter

13 ANTWORTEN 13
GELÖST
Antworten
Nachricht 1 von 14
M_Perez
13777 Aufrufe, 13 Antworten

Tag color based on parameter

I have a parameter for the material of each door. This material is also show in the door tag, but I want to change the color of the tag based on this parameter. 

I could make it with filters for the door itself, but for the tag, I don't find a way to do it automatic. I would have to make a tag for each material and assign them manually. 

Any Ideas? A way to apply filters to the tags?

Thanks!

13 ANTWORTEN 13
Nachricht 2 von 14
Sahay_R
als Antwort auf: M_Perez

Assign a Shared Parameter to the door tags. Create a filter assigned to the Door Category, filter for that parameter. Make the filter visible, override the graphics to make it the required color.

 

Untitled.jpg


Rina Sahay
Autodesk Expert Elite
Revit Architecture Certified Professional

If you find my post interesting, feel free to give a Kudo.
If it solves your problem, please click Accept to enhance the Forum.
Nachricht 3 von 14
Corsten.Au
als Antwort auf: M_Perez

Simple answer is you need different tags for different color.

 

If you have some text corresponding to type of door, then you may incorporate that data 

win Door / Window family itself ..

Corsten
Building Designer
Nachricht 4 von 14
M_Perez
als Antwort auf: Sahay_R

The Parameter in the Tag hast to be an Instance parameter, isn't it?

 

 

Test_Door_Tag.png

(Revit 2019)

 

I just tried it, I get the doors filtered, but not the tag... Am I missing something?

 

 

Nachricht 5 von 14
M_Perez
als Antwort auf: Sahay_R

@Sahay_R Could you please clarify it?

Nachricht 6 von 14
Sujan.Maharjan
als Antwort auf: M_Perez

How many types of material are you using. It might be best to create separate tag for each type if you must do this.


"Revit Lies in the tension between what we want to do and what can be done!"
Nachricht 7 von 14
M_Perez
als Antwort auf: Sujan.Maharjan

We have 5 different materials. But using different Tags means that I have to check and change manually the tag if a door changes its material.

Nachricht 8 von 14
Anonymous
als Antwort auf: M_Perez

I would try this:

1) create a yes/no parameter that indicates the material. 

2)create 5 different color tag symbols in the tag family

3)Set the visibility of each color symbol to the yes/no parameter for material

 

I haven't tried the next part, but you can attempt to link the material parameter to the yes/no parameters using a formula. You might bump up against parameter values being inconsistent units but there may be a way around that. If not, making the 5 yes/no parameters as type parameters wouldn't be too bad.

Nachricht 9 von 14
M_Perez
als Antwort auf: Anonymous

I assume that the yes/no parameter are supposed to be shared parameters and exist in the Doors and in the Tags.
The parameters in the Tag have to be element parameters.

When I make it so the change of the parameter in the door doesn't change the visibility of the tag.


What am I not understanding properly?

Nachricht 10 von 14
ToanDN
als Antwort auf: M_Perez

Parameters of the Door family are only for driving the labels of the Door Tag family, NOT the visibility of elements in the Tag. 

 

So, you can do something like: if Door parameter = True, then use the Tag label to read "something"; if False, "something else".  "something" and "something else" can be any recognizable characters, including special symbols or blank spaces.

 

 

 

Nachricht 11 von 14
Anonymous
als Antwort auf: M_Perez

Sorry if I sent you on a wild goose chase. I was heading out the door when I responded and should have read your original post better. I thought you wanted one tag family to be able to be different colors - rather than needing multiple colored tags  - and didn't realize you wanted them to also change automatically with the door. With my suggestion, they'd still be different Types in a single tag family.

 

@ToanDN is correct, tags can only pass-thru door parameters through labels, which precludes any tag graphics to be influenced by the tagged element. So, like everyone else on the thread already responded, your request is unfortunately not possible.

 

Still, I'd recommend setting up non-automatic graphic check: Filter the doors to be colored per @Sahay_R and then user color tag types, and it should be immediately visible which tags are not matching color and incorrect.

 

 

Nachricht 12 von 14
Corsten.Au
als Antwort auf: M_Perez

 

Hello

 

Am just giving an idea how to achieve what you are looking for...

 

I would recommend to go through the description to understand cause I am explaining each and every bit, advantages and disadvantages.

 

Skill Requirement. ( Shared Parameter, Graphics for how exactly Text works, alignment, opaqueness etc)

 

1. Use Shared Parameter 

2. Bit of tweaking in Tags to get the visibility right... ( because visibility parameter is not available in tags)

3. Need to add Custom Colour Parameter in the " Door " Family... without this there is not way to 

separate doors/family/family type to get identified colour wise..

 

4. Below I have shown you can place Door Number / Name in instance or Type Parameter

and uploading Revit file as well for your reference

 

5. " _ " underscore is used instead of blank space, else tag shows " ? " question mark ..." _ " is in " Comment " parameter.. ( If you use " TYPE COMMENT " Parameter then you wont need to change in each door..

 

6.  Disadvantage of using ALL THIS is, its not possible to get a coloured shape like rectangle, hexagon within

the tag, and impossible for me to give a unique colour...

 

Cheers...

 

 

Coloured Tag - DoorsColoured Tag - Doors

Corsten
Building Designer
Nachricht 13 von 14
Anonymous
als Antwort auf: Corsten.Au

Hi @Corsten.Au. Your solution is great and very clever!

 

Just wanted to respond to give kudos and summarize your method for those who may not go through each family you posted (because it took me awhile to figure out what you were doing).

 

Basically, you have 4 labels that are visible all the time. Each label shows a different shared parameter, and each label has a different color type of text. To help keep things straight, each parameter is named based on the color they will appear in the tag - although this isn't truly necessary for it to work. Whatever the text is in the door family for each parameter, it will appear in the tag in the color text assigned to that parameter. Finally, there is a simple black underscore on top of all the labels in the tag. If you don't want that color text shown, you make that parameter's text an underscore, so even though it is still visible, it is underneath and therefore hidden by the black underscore.

 

Once you set up the parameters for each color and tags, everything is controlled by the door type. You only have to make sure that the door type text parameters are correct!

Nachricht 14 von 14
M_Perez
als Antwort auf: Corsten.Au

Hi all!

I find your idea great @Corsten.Au I have maked it as solutions because I think it answers my question. But I find it even better that it has given me new tools to work with Tags.

 

I am working in a new version of your system. Based on it I have a way to "control visibility".

 

Test_Door_Tag_2.png

 

 

With a formula I can write the text for the tag once and then control the visibility with yes/no shared parameter in the door for each material.

 

 

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