AutoCAD coordinates

Discuss and ask questions about CAD .NET library.

Moderators: SDS, support, admin

Post Reply
lulu
Posts: 25
Joined: 12 Nov 2009, 19:55

AutoCAD coordinates

Post by lulu » 20 Apr 2010, 16:15

Hi,
I need to know the correspondence between the coordinates of mouse click (e.X and e.Y) and the corresponding coordinates in the AutoCAD file.
How can I turn the old coordinates into the new ones?

Thank you,
lulu.

support
Posts: 3272
Joined: 30 Mar 2005, 11:36
Contact:

Re: AutoCAD coordinates

Post by support » 21 Apr 2010, 17:33

Hello.
The coordinates of mouse click (e.X and e.Y) are display coordinates. You can transform a three-dimensional CAD point into a two-dimensional screen point using CADImage.GetPoint method. Reverse conversion can be fulfiled using CADConst.GetRealPoint method. Pleae see example in Viewer demo application.

Alexander.
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support

Post Reply