Hi Erfajo,
I am new to revit and dynamo and if I ask any stupid question please dont mind. I tried your DuctByLengthUnionConnected.dyn and it worked like a charm. We use 1400 lengths for duct and I changed your code slightly.
Secondly, If i replace the first two nodes with a select model element node, it works great for the first pass and if i draw new ducts and try to re-run the code it. it will undo the first pass (joint the elements it split in the first run) and splits the elements selected. Can you please advice me what changes I have to make to fix it.
CheersDuctByLengthUnionConnectedSelectElement.dyn (33.2 KB)
DuctByLengthUnionConnected.dyn (33.5 KB)