Centreline

SolidWorks macro suite that extracts pipe centrelines from geometry to rebuild or automate downstream steps.

Centreline (main)

Extract the centreline of a selected pipe to recreate or automate downstream steps.

Neutral points

Cross-segments of straight parts — useful for pipe bending where precise intersection points are needed.

Spline centreline

Works on complex geometry using B-splines; reconstructs a spline when underlying edges are not directly available.

How it works

Open a part containing pipe geometry, select the relevant surfaces, and run the macro. It analyzes the geometry and extracts an accurate centreline for the whole run.

This is especially useful when you receive STEP files without model history — you can recover centreline geometry and rebuild pipes parametrically.

  • Validate real pipes by checking that extracted centrelines match intent
  • Export points to CSV/Excel for downstream steps (e.g., pipe bending)
  • Handle straight runs and complex shapes to accelerate redesign