OK,
So the points on the 3d line need to be on a single plane. So I think, define a 2d line and move the points to that line and retain the "z" value.
Or, the 3d line is a surveyed line and the output required is a "straight" line and not "wobbly". How to make straight?
Cheers