- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am working on creating a family for a medical suspension system. The geometry all works properly and consists of a nested family with other nested accessories giving the user the ability to select the accessory from a Family Type: Specialty Equipment parameter. I am trying to add clearances to the family, one for the center access, and another for the accessory. I am able to create the center clearance easy enough because that is based on a simple length parameter for the arm of the suspension. I am struggling to figure out how to create a clearance for the accessory. The Image below shows the Ref. Level view of my family. The red circle is the center access, the Green circle is the accessory clearance.
Because the user can change the accessory, the accessory clearance needs to adjust based on the accessory selected. My thought was to create a "Clearance VAR" parameter, then use a formula for the clearance diameter that would add the length of both arms and the Clearance VAR (Arm 1 Length + Main Arm Length + Clearance VAR). This appears to be working correctly (Screenshot below):
I then tried creating a "Clearance VAR" parameter that would account for the differences between the different accessories. I thought I could use an IF statement formula to change the value based on the accessory in the Accessory parameter. The formula I was using is below:
if(Arm 1 Accessory = "UDM", 137 mm, if(Arm 1 Accessory = "Screen", 237 mm, if(Arm 1 Accessory = "SLX628", 442 mm, if(Arm 1 Accessory = "SLX528", 377 mm, if(Arm 1 Accessory = "NFC-SLX628", 758 mm, if(Arm 1 Accessory = "NFC-SLX528", 663 mm, if(Arm 1 Accessory = "NAV Cam", 199 mm, if(Arm 1 Accessory = "Lead Shield", 161 mm, if(Arm 1 Accessory = "Bubble Cam", 173 mm, 0 mm)))))))))
I can't seem to get this formula to work, I'm not sure if the formula is incorrect, or if there is some limitation in Revit that doesn't allow this type of formula to work with Family Type parameters. I've attached the family to this post.
Any help or direction would be greatly appreciated!
Solved! Go to Solution.