Pile renumbering - need spline assistance

Wouldn’t be easier to make use of the grids (if there are any in the project)?