C++
Acad::ErrorStatus straighten();
Description
This function removes all spline and curve-fit vertices from the polyline or mesh and sets all remaining vertices to be simple vertices. This operation performs the same modification as the PEDIT command "Decurve" option.
Returns Acad::eOk.