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: 

Visibility Parameter

7 ANTWORTEN 7
GELÖST
Antworten
Nachricht 1 von 8
MS_jkimc65
1283 Aufrufe, 7 Antworten

Visibility Parameter

I am trying to have visibility parameter selected based on Parameter Value equaling the value entered?  I set up parameter - Type of Const and several visibility parameters.  If I enter IA for the "Type of Const", I then want the IA visibility parameter visible and all others not visible.

j. kim candelario
method-studio, inc.
Tags (2)
Beschriftungen (1)
7 ANTWORTEN 7
Nachricht 2 von 8
barthbradley
als Antwort auf: MS_jkimc65


@MS_jkimc65 wrote:

  If I enter IA for the "Type of Const", I then want the IA visibility parameter visible and all others not visible.


 

 

All others would "=Not(IA)" then.  No?  

 

Revit Formulas for "everyday" usage (revitforum.org)

 

 

Nachricht 3 von 8
MS_jkimc65
als Antwort auf: barthbradley

I feel you are vague in your response, I don't follow what you mean by . . .

All others would "=Not(IA)" then.  No?  

j. kim candelario
method-studio, inc.
Nachricht 4 von 8
barthbradley
als Antwort auf: MS_jkimc65

"No?" was a question back to you.   "Not(IA)" in the Formula for "IB" would uncheck "IB" if "IA" was checked.  Get it? 

 

Did you see the link I posted? It talks about this and other formulas you could employ, such as "OR" and "AND".  

 

And Or Formulas.jpg

 

 

 

Nachricht 5 von 8
cbcarch
als Antwort auf: MS_jkimc65

You might also consider using Filters for this.

Cliff B. Collins
Registered Architect The Lamar Johnson Collaborative Architects-St. Louis, MO
Nachricht 6 von 8
David_W_Koch
als Antwort auf: MS_jkimc65

Revit cannot compare text values, so you will not be able to set up a formula like:

if(Type of Const = "1A", 1=1, 1=0) 

 

If you can live with using an integer parameter (called, for example's sake, ConstType), in which you assign meaning to each value (eg, 1 is "IA", 2 is "IB", 3 is "IIA", 4 is "IIB", etc.), then you write a formula for each Yes/No parameter similar to:

if(ConstType = 1, 1=1, 1=0)

 

You can save your users from having to also enter the text value by assigning a formula to the Type of Const parameter:

if(ConstType = 1, "IA", if(ConstType = 2, "IIB", if(ConstType = 3, "IIA", if(ConstType = 4, "IIB", if(ConstType = 5, "IIIA", if(ConstType = 6, "IIIB", if(ConstType = 7, "IVHTA", if(ConstType = 8, "VA", if(ConstType = 9, "VB", "Undefined Construction Type")))))))))


David Koch
AutoCAD Architecture and Revit User
Blog | LinkedIn
EESignature

Nachricht 7 von 8
David_W_Koch
als Antwort auf: MS_jkimc65

Here is proof of concept family & image.  (It is an empty Generic Model done in Revit 2020.)

2021-05-03_Revit2020_ConstTypeFormulaExample.png

 


David Koch
AutoCAD Architecture and Revit User
Blog | LinkedIn
EESignature

Nachricht 8 von 8
MS_jkimc65
als Antwort auf: David_W_Koch

David Koch,

 

Thanks for the feedback, I was stuck with the parameter text value that revit can't compare you spoke of and that is where I was confused.  I knew I needed a formula for each of the visibility parameters, I was on the right track somewhat, that makes sense to create a parameter to  assign an integer for an input/value.  I appreciate your response and thanks again!

j. kim candelario
method-studio, inc.

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