Slicer to convert linear interpolation to Arch and G02

If your curve is not a polyline there is a command curve to arc and line
https://developer.rhino3d.com/api/RhinoCommon/html/M_Rhino_Geometry_Curve_ToArcsAndLines.htm

If it is a polyline, it seems rhinocommon is not working. I made my own tool for that. There are some tools available also, see my post.