I have elbows that are locked at either 45 or 90. I would like to be able to do a statement for automatic tagging. Such has If angle equals 45 then "A" if Angle equals 90 then "B". Any help would be greatly appreciated.
Solved! Go to Solution.
Solved by CoreyDaun. Go to Solution.
You will need a Shared Parameter (Text), and to add this Shared Parameter to your Pipe Fitting Family(ies) as an Instance Parameter and to your Pipe Tag Family(ies). Depending on the exact nature of your situation, you can apply one of the following formulas to this Shared Parameter within the Family:
If there is no possible way for the user to end up with any value besides 45° or 90°, then you can use:
= if(angle = 45°, "A", "B")
If the user could end up with a different angle, use the following where "X" is the text to return if it isn't 45° or 90°:
= if(angle = 45°, "A", if(angle = 90°, "B", "X"))
See the attached sample Project File (Revit 2012). I have added a Shared Parameter "PipeAngleReport" (Text) to the OOTB Generic Elbow Family as an Instance Parameter with the formula from my first post. I've also added this Shared Parameter to the Pipe Fitting Tag. This Shared Parameter could also be included in a Schedule.