Grey out certain parameters if a visability parameter isnt checked.

Grey out certain parameters if a visability parameter isnt checked.

mv2JHHXL
Contributor Contributor
1,142 Views
5 Replies
Message 1 of 6

Grey out certain parameters if a visability parameter isnt checked.

mv2JHHXL
Contributor
Contributor

Hi

 

Id like to grey out certain shared parameters from a nested family in the host family, if the checkbox for that nested family is unchecked.

Meaning: If 'Console 1' is unchecked, 'Nivo console 1', 'b c1', 'd c1' should grey out, so that the user can't put in numbers of that element since its hidden. This way the user cant miss putting in the numbers per element (nested family). I have 4 nested with each their own parameters. So id like them to grey out depending on if they are visible or not (checked or unchecked).

 

I am not really finding how to write the right formula if that is the way to go about this problem.

I hope I'm explaining well. Thanks in advance!! 1.png

0 Likes
Accepted solutions (2)
1,143 Views
5 Replies
Replies (5)
Message 2 of 6

barthbradley
Consultant
Consultant

You can lock a parameter via a Formula, but then the formula-driven Parameter wouldn't be accessible.  So in this case, it wouldn't be possible because three of the four Yes-No Parameters would be defunct.

 

Here's a link to good reference about formulas:  

 

https://www.revitforum.org/node/1126

 

 

Message 3 of 6

barthbradley
Consultant
Consultant
Accepted solution

BTW, I notice those Yes-No Parameters are TYPE Parameters.  A better approach would be to make Family Types with presets.  

Message 4 of 6

Thomas.S.Teichmann
Advocate
Advocate
Accepted solution

@mv2JHHXL 

As far as I know, there is no way to grey out parameters in any Revit version.

The parameters that are greyed out are instance parameters where the value has been set by a formula.

 

However you can change the order of your parameters and add some instance parameters as instructions.

See picture:

ThomasSTeichmann_0-1678632364366.png

That's how it looks in the family:

ThomasSTeichmann_1-1678632513974.png

With the arrows you can move parameters up/down (you probably knew that.)

Message 5 of 6

mv2JHHXL
Contributor
Contributor

This is indeed a solution. Seems like im the difficult one xD.

Until they enable what I was trying to do, ill go with this.

 

Im definitely a pro at revit, I'm using it for like 3 weeks lol.

 

Thanks a lot!

0 Likes
Message 6 of 6

mv2JHHXL
Contributor
Contributor

Oh yes that could also be a nice approach.

I just wanted it to be versatile without needing to rotate the object every time. Thought just quickly checking and unchecking was easy to do ;p.

 

Thanks for the advice!

0 Likes