Polyline through pipe

what would be the easiest way to obtain the centeral polyline from a set of pipes? this is so i can change the diameter of the pipes through their centeral polylines, unless there is a more efficient way to do that?
pipes.gh (46.4 KB)

pipes_reV1.gh (56.4 KB)

1 Like

great, thanks!