Visibility Parameter

Visibility Parameter

MS_jkimc65
Enthusiast Enthusiast
2,220 Views
7 Replies
Message 1 of 8

Visibility Parameter

MS_jkimc65
Enthusiast
Enthusiast

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.
0 Likes
Accepted solutions (1)
2,221 Views
7 Replies
Replies (7)
Message 2 of 8

barthbradley
Consultant
Consultant

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

 

 

0 Likes
Message 3 of 8

MS_jkimc65
Enthusiast
Enthusiast

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.
0 Likes
Message 4 of 8

barthbradley
Consultant
Consultant

"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

 

 

 

0 Likes
Message 5 of 8

cbcarch
Advisor
Advisor

You might also consider using Filters for this.

Cliff B. Collins
Registered Architect The Lamar Johnson Collaborative Architects-St. Louis, MO
0 Likes
Message 6 of 8

David_W_Koch
Mentor
Mentor

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

0 Likes
Message 7 of 8

David_W_Koch
Mentor
Mentor
Accepted solution

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

0 Likes
Message 8 of 8

MS_jkimc65
Enthusiast
Enthusiast

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.
0 Likes