Line / pipe to alignment with profile

Is there any solution can generate the profile view from the 3D polylines/ pipe. When i use GIS to convert the data to the 3D pipe model. After converted to the pipe network system. the lines are unconnected too. Is there any dynamo / python script can help it?

Could you perhaps share a little bit more information in the form of screenshots/ graphs?