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: 

Text parameter functionality

3 ANTWORTEN 3
Antworten
Nachricht 1 von 4
Anonymous
407 Aufrufe, 3 Antworten

Text parameter functionality

I love all the changes Revit 17 has brought us, but one of the features I want most is still conspicuously missing. That is functionality for text parameters and using text as a qualifier in and/or/if statements

 

My current dilemma is that I am trying to build a code data sheet that automatically fills itself out based on construction and occupancy type. So if we type in 2B as a construction type it automatically fills in fire rating requirements in a separate table. Unfortunately, Text cant be used as a qualifier and just gets recognized as a different parameter. What I WANT to build is like below. Essentially, revit would look for specific text situations as the parameter value and return either a # or the last value of the string(0 in this case)

 

IF(CONSTRUCTION TYPE = "1A" , 3 , IF(CONSTRUCTION TYPE = "1B", 2 , IF(CONSTRUCTION TYPE = "2A", 1 , IF(CONSTRUCTION TYPE = "2B" , 0 , IF(CONSTRUCTION TYPE= "3A" , 1 , IF(CONSTRUCTION TYPE= "3B" , 0 , IF(CONSTRUCTION TYPE= "5A" , 1 ,0)))))))

 

AUTODESK OVERLORDS! HEAR MY PRAYERS!

3 ANTWORTEN 3
Nachricht 2 von 4
Alfredo_Medina
als Antwort auf: Anonymous

What if Construction Type is a number?

 

Then, if that number parameter is this, the other parameter is that

 

1.1 = "1A"

1.2 = "1B"

2.1 = "2A"

2.2 = "2B"

3.1 = "3A"

3.2 = "3B"

5.1 = "5A"

....


Alfredo Medina _________________________________________________________________ ______
Licensed Architect (Florida) | Freelance Instructor | Profile on Linkedin
Nachricht 3 von 4
ToanDN
als Antwort auf: Anonymous

It sounds like an easy job for key schedules.
Nachricht 4 von 4

This is only good for some cases.

 

However, in lot of other cases where the condition is based on a text value, and the text value is unpredictable, text evaluation functionality is definitely required.

 

For example, I need a model text on a switchboard family to show the switchboard name, say "DB-1". I can use a text parameter e.g. DBName for user to input the switchboard name. Here comes the problem - Revit model text doesn't accept blank text. Then the family needs to be able to check if the input text is blank: If DBName is a blank text,  set the model text to a default text value such as "DB", otherwise equal to DBName. i.e. formulas like below are required:

 

ModelText = if (DBName="", "DB", DBName)

or

ModelText = if (IsBlank(DBName), "DB", DBName)

 

Unfortunately, Revit still hasn't provided such simple basic functionality.

Is there any work around? Any help is appreciated.

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