Hi Michail and Konrad,
First of all, thanks a lot for this post. I really believe this is what Revit MEP will be able to do in a short period of time, automatization of routing and connection of ducts, pipes, electrical conduits etc. This is really exciting to me and that’s why I started to learn more dynamo and phyton focusing in the MEP side mostly:) Right now this is what I’m working on:
*Figure 1: Working flow scenario
As you can see in Figure 1, I’m trying to connect some ducts where the end point of a duct overlap with the starting point of the next, except the duct which is in the middle of this small layout of ducts. So if the ducts are connected should look like the right side of this image. My first approach has been to find the coordinates of the ducts connectors (following the same method that you did here) to afterwards trying to connect them to the closest connector or duct instances as it works in revit, so the duct fitting can be placed according the routing preferences of our ducts. In order to avoid duct connectors that we don’t really want to get connected to any other duct like in Figure1, my idea was to constraint these connection process by a numerical tolerance. So if the distance from one connector to the closest connector or duct is to big, the condition is false and the connection will not be executed.
However unfortunately, I got stuck in the first step of getting the coordinates of the ducts connectors as it is seen in Figure 2. In the second python script, I got the following error: "AtributeError: ‘ConectorManager’ object has not attribute. I don’t know what the problem can be since my phyton and revit API skills are not really high.
*Figure 2: Dynamo workflow.
Also, I don’t really know once that I will get the coordinates of the ducts connectors, if is possible and feasible to script the workflow that I described before. That’s why, I would really appreciate some suggestions or help if you are really interested in finding a solution to this workflow as same as me
Furthermore, I would like to mention as well that I thought in a second approach completely different for this workflow for connection of ducts. My other idea was to try connecting the ducts by triming them one to another as you can do whithin revit. So the ducts can be connected and the duct fitting is placed automatically as well. However, I couldn’t find any node that it could help me with this idea.
Looking forward of hearing from you and keep learning more about this exciting tool.
Thanks in advanced.