Connect Pipes With the Series of Manhole

Hello friends, so far, I’ve been able to solve one part of the problem (connect a pipe from point A to point B) I hope by following this solution I will be able to connect the pipe with all the manholes in the series. I hope someone could share their experience opinion on it. However, I’ll be working on its complete solution, if i find it, will share with the community. Appreciate the support, really enjoying working with Dynamo. Thnak you