Hide parameters by Type

Hide parameters by Type

Anonymous
Not applicable
1,931 Views
1 Reply
Message 1 of 2

Hide parameters by Type

Anonymous
Not applicable

Hello,

I,ve created a family with three different types called Hus A, Hus B and Hus C. To each of this Hus (House) I have added a number parameter called B/N Faktor Hus A/B/C. Is there a way to hide the parameters of: B/N Faktor Hus B and C when you have choosen Type Hus A?... Don't know if that made any sense?

 

Thank you!

 

HUSabc.jpg

0 Likes
1,932 Views
1 Reply
Reply (1)
Message 2 of 2

RichConyers
Advocate
Advocate

This is a 2-part answer. 

1. Creating a visibility setting for parameters require shared parameters. 

I included a description below from this post:

https://forums.autodesk.com/t5/revit-api-forum/hidden-parameter/td-p/2684050

 

 

Shared parameters have a "visible" property (defaults to 1 = visible). You could set this to 0 but that requires modifying the shared parameters file manually, which is NOT recommended. (I have not tried changing this value and observing the results myself)

Otherwise, what some people do is put the parameter in the "Other" group in the family (down at the bottom) to help get it more out of sight, and then put a formula on it to "lock" it so it can't be changed in the project editor.

For example:

Name: My Length Parameter
Formula: If(1=1, 17 cm, 0 cm)

Name: My Text Parameter
Formula: "Hello, World"

Name: My YesNo Parameter
Formula: 1=1
or
Formula: 1=0

 

2. Set your formula to hide the shared parameter if either other option is selected. 

Let me know if you need additional help finding the specific formula. 

 

_________________________________________________________

 

Alternate (and possibly simpler) method would be to create a type parameter.

Then fill in that type property with any of the three options with a formula that reads "If A, then show ____. If B, then show ____. If C, then show _____.

 

Cheers,

Rich

 

0 Likes