@Alejandro_Mata
hey,
try this one:
IN[0].ConnectTo(IN[1])
Dear Michail,
Iām looking for a python script and a dynamo script that can collect connectors from some pipe fittings, after that i want to find out which are disconnected and reconnect them.
Your script looks like it can help me but iām missing sometihng of your script in these views above. Please can you provide me the scripts or can help me further.
Reconnect disconnection.dyn (6.4 KB)
Best Regards,
O. Kappert
Hi
I am sorry, I donāt have time to help out in detail.
Also, Iāve long since switched to C# for my MEP programming needs.
The script you show in the screenshot, does not attempt to connect nodes, it just collects the coordinates of the connectors.
What you have to do, is get fittings elements, get their connectors, run those against a collection of all connectors in document, detect those that share the same location (always a pair connecting two elements together), and then: if (!connector1.IsConnected) connector1,ConnectTo(connector2). Anyways, you have to modify the sequence to suit your own needs.
As a side note, I have an add-in to connect or disconnect aligned connectors or all connectors in document. Please see this: https://github.com/shtirlitsDva/MyRevitAddins/blob/2018-stable/MyRevitAddins/ConnectConnectors/ConnectConnectors.cs.
Some MEP related functions are in this file: https://github.com/shtirlitsDva/MyRevitAddins/blob/2018-stable/MyRevitAddins/Shared/MyUtils.cs
You have to dive in some C# and Python, sorry, canāt help you any further.
Hi Olaf,
I added a bunch of connector nodes to my MEPover package a few weeks back. Those should be able to help you out without having to dive into python/C#
Good afternoon! could you make a node that creates consecutive lists of elements from each air terminal to the fan.
Not exactly sure what it is you want to achieve, but there is a node called āDuct Upstream Componentsā that will try to retrieve every element from the air terminal to the main equipment. Only works if the flow in the network is set properly.
Thank you, but itās not quite that.
I need:
It is necessary to build the number of entries equal to the number of air termals in the system.
In the list, the sequence from the air terminal is built up to the end of the network (fan). Ie at first the elements of the branch, then the main elements and ducts without branches.
Yes in the lists will be the repetition of the elements.
e.g. each list generates a sequence of elements by the movement of air from / to the air terminal to the fan.
Dear T_Pover,
I donāt think this is what i can use. What i want to do is running an add-in that can split my pipes at a certain length. I already have placed taps(welded grooved taps) on my pipe that is to long. But i need to run the add-in for splitting the pipes after i have placed the taps.
Know revit is placing a coupling at a certain length but it wil disconnect the tap from the pipe. I want to reconnect the same tap on the pipe by a script. The problem is that a tap doesnāt have a visible connector in Revit but i know that there is a connector point.
I want to make a script that is going to reconnect the disconnected tap to the pipe that has the certain length.
Is this possible with you package. Please can you provide me a small script where i can see that i disconnection in revit is reconnected. Maybe i can build this script further to solve my problem.
Best Regards,
O. Kappert
Hi Olaf,
Hereās a rather crude implementation that will connect pipe fittings to pipes if the locations of the connectors are the same.
Connect Disconnects .dyn (10.8 KB)
Dear T_Pover,
Thank you very much for your script.
A question from my side. Does this also work for Taps.
Disconnected taps.rvt (2.1 MB)
See attachment.
The 2 taps on the left are disconnected but i canāt get them reconnected with your script.
Please let me know if this is possible.
Best Regards,
O. Kappert
I donāt think this will work with taps. The tap-connection to a duct or pipe only exists on the duct as long as the tap is connected. If itās no longer connecter there will not be a disconnected connector on the duct.
Thank you for your reply.
Then i have to look for another solution. i have seen something that was programmed that could do this, but i t was made in the API from Revit.