I am busy using the “Element.CopyByVector” method to split a length of pipe and place down flanges. It works great, but when the script finishes, the first and last pipe in the run are losing connection to the relevant end connectors like you see below.
I am looking for a way to keep these connected, as the implications of them losing connection means that another system is created.
What I have tried so far is getting the two end connectors of the original pipe, as well as the First connector of the first new pipe, and the last connector of the last pipe and connect those together using the “Connector.ConnectTo” node from MEPover. Unfortunately I have not been successful with this… Can anyone help me? I feel like I am close given that the connections are right next to each other, I just need the right ones I think?
I cannot upload a sample Revit file due to file size, but it is just 4 pipes with the attached Revit Flange family loaded into the routing preference for flanges, with minimum sizes set to allM_Flange - Slip-on - Steel - Class 150.rfa (516 KB) . Any help would be very much appreciated!!
I am using Revit 2019.2 and Dynamo 126.96.36.19911PipeByLengthUnionConnected_DataShapes_testing.dyn (130.1 KB)