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 for Door Tag by colour

6 ANTWORTEN 6
Antworten
Nachricht 1 von 7
claudia_kopietz
553 Aufrufe, 6 Antworten

Conditional Statement for Door Tag by colour

Hi there,

 

I'm quite new to formulas in Revit but I have seen this somewhere before. However, I'm not able to get it right.

 

I have a door Tag to identify different Fire ratings. Instead of creating each individual type inside the family, we would like the Tag to read the Tag_FireRating shared parameter and automatically pick the correct color and text for it. But I can't really figure out how I should phrase the formula for this to work.

 

Any ideas as we don't want to control that by the visibility settings and have 7 different types inside the tag.

 

Green - if Tag_FireRating is 30S, 30Sa or 30C

Blue -  if Tag_FireRating is 60S, 60Sa or 60C

Red - if Tag_FireRating is 120S

 

many thanks

Claudia

6 ANTWORTEN 6
Nachricht 2 von 7
barthbradley
als Antwort auf: claudia_kopietz

What you are trying to do can't be done directly. Text can't be used formulas. Tags can't do anything but report data. Families can't control which Tag Type is used on it in a Project View.   Maybe an approach would be to use Project View Filters in Project Views to hide all the Doors with a particular Fire Rating and then Tag All Doors remaining visible in View with a particular Tag Type. Rinse and Repeat for each Tag Type/Color.  

Nachricht 3 von 7
mhiserZFHXS
als Antwort auf: claudia_kopietz

Barth's response works. You could also use Dynamo to get to your initial goal posted above, but that would take a bit more work if you aren't familiar with Dynamo yet.

Nachricht 4 von 7
ToanDN
als Antwort auf: claudia_kopietz

You can use formulas in the family to change label color, but not text or symbol.

Nachricht 5 von 7
syman2000
als Antwort auf: claudia_kopietz

Only way to achieve this is to embedded this tag into the Door itself. (See attached)

 

syman2000_1-1690218884582.png

syman2000_0-1690218853162.png

 

Check out my Revit youtube channel - https://www.youtube.com/user/scourdx
Nachricht 6 von 7
claudia_kopietz
als Antwort auf: barthbradley

I was probably not clear.

 

the family is like this

 

Label that reads the Fire Rating parameter (shared parameter) in the door family.

Every label has the correct color (one for green, one for blue, and one for red)

Then I added filled regions for the circle around structured the same way the label colors.

Then I created Yes/No parameters for Green, Blue, and Red and assigned the respective label and filled region.

 

Is there a way to add a conditional parameter that when the tag is applied to the door it will put the correct color of that tag? If the door has an FDS60 the tag will be Blue but if is FDS30 then will be green and so on.  

 

Thanks again

Nachricht 7 von 7
claudia_kopietz
als Antwort auf: ToanDN

As I mentioned I'm new to formulas and not en expert :zwinkerndes_Gesicht: 

As you seem to know the formula could you share knowledge?

 

Thanks

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