hi This can be done using the code on the page
But there is a problem connecting the pipes It is API CIVIL 3D not currently supported