I recommend you to try the “Extract centerline of pipes” script:
Extract centerline of pipes:
ExtractCenterline.py (6.5 KB)
Alternatively, you can download it from the first post in the topic below, which also consists many other useful scripts, macros and plug-ins:
2 Likes