Get the coordinates of the selected line
Posted: 06 Aug 2022, 09:32
Hello
How can I get the coordinates of the line drawn and selected by the mouse?
How can I get the coordinates of the line drawn and selected by the mouse?
CADSoftTools - AutoCAD DWG DXF HPGL (PLT) SVG CGM STEP IGES STL SAT viewers, converters and developer tools. Delphi and C# source code.
https://cadsofttools.com/forum/
Hello,
Code: Select all
private void menuItemLine_Click(object sender, EventArgs e)
{
if (cadImage == null) return;
CADLine targetLine = cadImage.SelectedEntities[0] as CADLine;
DPoint startLine = targetLine.Point;
DPoint endLine = targetLine.Point1;
}