PDA

View Full Version : Yes/No Visibility Parameter with Secondary Parameter Help



bpayne
2011-06-15, 12:06 AM
I have a wall protection generic line based family with yes/no visibilities for the handrail and crashrail. Each family type controls if either or both rails are "on". Everything is good so far.

Now I want to add an additional parameter that turns either one off when the length of the family is reduced to less than 12" without changing the type.

Does anyone have experience with having two parameters control the visibility of the same object.

The logic should be: If (Length > 12" and Rail "On" then Rail "On", if not Rail "Off")

I tried to get this to work and have failed so far.

Thanks

patricks
2011-06-15, 01:43 AM
Have your length parameter, a Rail yes/no parameter, and a 3rd parameter that actually controls the rail visibility, such as simply "r". This 3rd parameter is controlled by other two by using a formula, so I usually stick these "behind the scenes" parameters down in the Other category.

The formula for "r" is: = not(or(not(Rail), Length < 1'))

This makes the rail turn off if EITHER "Rail" is off, OR if the length is less than 12 inches.

bpayne
2011-06-15, 02:13 AM
Patrick's, awesome...thanks...just what I was looking for.

patricks
2011-06-15, 05:52 PM
haha yeah it took me a bit of trial and error last night to figure it out. I'm always up for a good Revit challenge! :)