Method ConvertToLine
- Namespace
- OpenCAD2D
- Assembly
- OpenCAD2D.Core.dll
ConvertToLine(CadDocument, string, int)
Makes an arc segment of a polyline straight, as the Convert to Line item does once its pick is made, one undo step.
public static CadEditResult ConvertToLine(CadDocument document, string handle, int gripIndex)
Parameters
documentCadDocumentThe document.
handlestringThe handle of the polyline.
gripIndexintThe index of the segment middle grip, as Of(DxfEntity) gives it.
Returns
- CadEditResult
What came of it: refused for an object on a locked layer, or a grip that is not the middle of an arc segment.
Exceptions
- ArgumentNullException
Thrown when the document is null.