CADViewer GetRealPoint
Posted: 22 Mar 2016, 16:19
Hi,
I examine the example CADViewer, I work with a demo source of version CAD.Net 10.1.
I convert mouse coordinates to the real point using GetRealPoint function.
I have defined DRect and I want to know whether DPoint returned by GetRealPoint function is contained by defined rectangle using DRect.Contains (DPoint) in the event MouseDoubleClick of CADPictureBox. It works as expected, but ...
X coordinate is always correct regardless of the scale, but the Y coordinate is returned with a small deviation, appr.10 units below (correct is Y = Y-10). What is the cause?
Probably the curvature of space between me and the screen...
I open the same dwg file using CADEditor example, check Y positions of entities and check viewing the real point in the status bar, and everything works properly.
Thanks for answers.
I examine the example CADViewer, I work with a demo source of version CAD.Net 10.1.
I convert mouse coordinates to the real point using GetRealPoint function.
I have defined DRect and I want to know whether DPoint returned by GetRealPoint function is contained by defined rectangle using DRect.Contains (DPoint) in the event MouseDoubleClick of CADPictureBox. It works as expected, but ...
X coordinate is always correct regardless of the scale, but the Y coordinate is returned with a small deviation, appr.10 units below (correct is Y = Y-10). What is the cause?
Probably the curvature of space between me and the screen...

I open the same dwg file using CADEditor example, check Y positions of entities and check viewing the real point in the status bar, and everything works properly.
Thanks for answers.