Page 1 of 1

AutoCAD coordinates

Posted: 20 Apr 2010, 16:15
by lulu
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.

Re: AutoCAD coordinates

Posted: 21 Apr 2010, 17:33
by support
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.