Straighten Edge – MAX script, allows to project and after it to place selected vertex/edges on the given straight line on the Editable Poly object, Edit Poly modifier and Editable Spline & Line objects.
Axis constraints not work properly, please do not use it.