Hello @revitworkbench,
Here is the Video I promised.
In the video, you see how I create a family where I can switch between a hot water and a cold water connector.
The principle is that you need an array of 3 geometry items and place the connector on the third item.
when you set the number of the array the third element disappears and your connector is gone.
And if you set the distance between the elements to 0 you have the connector in the same place when you switch the number from 3 to two.
Note: the minimum number far an array is 2.
So in this Video i created a new family and put some parameters in it for connector geometry material, length and diameter of the connector, array numbers and the distance for the array. The last one is handy but not necessarily needed.
Cold water connector:
- create a geometry family for the connector and place that one in the origin of your main family. (parameters: diameter, material, length)
- connect the parameters to the parameters in your main family
- create an array of 3 elements to the right.
- click the array dimension and add the Integer parameter n_cold to it.
- place a dimension between the reference line and the reference line in the family and connect the dimension to the length parameter distance.
- place the cold water connector on the third element of the array and set the System Classification to Domestic Cold Water and set the other parameters the way you want.
Hot water connector:
- do the same as for the Cold water connector but now array the geometry to the left.
- create de default type and see to it that both parameters 'cold water' and 'hot water' are turned on.
- create two new types and set the Yes/No parameters 'cold water' and 'hot water' for every type.
- set the Type default as the default type and save the family.
Now you can load the family into your project and play with it.
have fun 🙂
Note 1:
Leave the default Type, where you see all the connectors and where all the array numbers are set to 3, in your family and set it as the default when saving. If not, your family will break and you lose you connector switch functionality.
Note 2:
You can use this method for every connector type.
be creative. 🙂
Note 3:
This is a workaround but it would be great is we had the possibility to have more control over the Revit connectors like turning them on and off the way you make geometry visible or invisible.
And what about the control over the System classification and flow direction, etc.
Well, there is an Idea from @ViviNyehuusAndersen called MEP Connector Visibility YES/NO" please Vote for this one.
The more votes and motivations the higher the change Autodesk will look at this.
So please Vote, Vote, Vote, and motivate ! 🙂
If my post answers your question, please click the "Accept as Solution" button. This helps everyone find answers more quickly!
Kind regards,
Robert Klempau
Senior Consultant AEC
Cadac Group AEC BV