resolution of picturebox of CAD editor control

Discuss and ask questions about CAD .NET library.

Moderators: SDS, support, admin

Post Reply
Khyati
Posts: 34
Joined: 08 Feb 2011, 08:55

resolution of picturebox of CAD editor control

Post by Khyati » 31 Mar 2011, 07:55

What is resolution of the picture box of cadeditorcontrol?
what is drawing scale for that?

If we do zoom-in, zoom-out, does it affect on resolution and drawing scale? how?

While programming, how can i get particular point's position/location in term of X,Y,Z co-ordinates? (if i use mouse event, it gives me mouseeventargs, which has X, Y co-ordinates.. but it works strangely.. it not give true position of mouse.. i've asked about this in my last post)

If we do zoom-in / zoom-out, does it affect on X,Y,Z co-ordinates?
Are they(coordinates) absolute or relative?

What is better to use? absolute? or relate co-ordinates?

-Khyati

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

Re: resolution of picturebox of CAD editor control

Post by support » 31 Mar 2011, 18:09

Hello.
PictureBox of CADEditorControl fill its container by default. However you can change this parameter and use PictureBox size instead.
CADPictureBox provides screen coordinates on mouse events. CADImage operates with drawing coordinates. You can transform a two-dimensional screen point into three-dimensional CAD point using CADConst.GetRealPoint method. Reverse conversion can be fulfilled using CADImage.GetPoint method. Please see example in Viewer demo application.

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

Khyati
Posts: 34
Joined: 08 Feb 2011, 08:55

Re: resolution of picturebox of CAD editor control

Post by Khyati » 01 Apr 2011, 07:13

Hello,

I appreciate your regularity in replying to queries.
It would be more beneficial to new users, like me, if answers are step by step (as asked). Paragraphs are not so well, when questions are asked separately even in single post.

1) X,Y co-ordinates show some value. What is unit of them? mm or inch?
2) what is picture box grid's resolution?
3) if we do zoom-in / zoom-out, does it change scale of drawing or resolution of picture box ?

Thanks.

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

Re: resolution of picturebox of CAD editor control

Post by support » 04 Apr 2011, 16:21

Hello Khyati.
Some questions can't be answered step by step because question formula not fully correct. For example you asking
What is resolution of the picture box of cadeditorcontrol... or ... what is picture box grid's resolution?
But the CADPictureBox sizes can be changed to required in your project. In demo applications CADPictureBox.Dock property set to fill value, so sizes of CADPictureBox will be dynamically changed to fill all container area. You can switch off filling ans set the preferred sizes. So, I think previous answer was correct.
X,Y co-ordinates show some value. What is unit of them? mm or inch?
What X and Y coordinates you meant? If mouse coordinates returned by control event then please see my previous post. Please specify.

Zoom in or out changes drawing scale and doesn't concerned to CADPictureBox sizes.

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

Post Reply