Hello
How can I get the coordinates of the line drawn and selected by the mouse?
Get the coordinates of the selected line
Moderators: SDS, support, admin
Re: Get the coordinates of the selected line
Hello,
CADLine has Point1 and Point2 properties, that indicate the coordinates of the line:
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;
}
Catherine
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support
Chat support on Skype: cadsofttools.support