Regarding Scaling

Discuss and ask questions about CAD .NET library.

Moderators: SDS, support, admin

Post Reply
VijayKumar
Posts: 11
Joined: 17 Oct 2019, 09:33

Regarding Scaling

Post by VijayKumar » 23 Oct 2019, 12:47

Hello Team,

What is MMToPixelX and how to calculate Real Scale?

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

Re: Regarding Scaling

Post by support » 23 Oct 2019, 13:15

Hello,

If you mean a CADImage.MMToPixelX property, it determines the quantity of millimeters per one pixel. Could you please describe your task in details?

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

VijayKumar
Posts: 11
Joined: 17 Oct 2019, 09:33

Re: Regarding Scaling

Post by VijayKumar » 23 Oct 2019, 14:08

How can I map it for different Zoom Level and Different images?

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

Re: Regarding Scaling

Post by support » 23 Oct 2019, 14:32

VijayKumar wrote:
23 Oct 2019, 14:08
How can I map it for different Zoom Level and Different images?
Could you please elaborate on this?

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

VijayKumar
Posts: 11
Joined: 17 Oct 2019, 09:33

Re: Regarding Scaling

Post by VijayKumar » 23 Oct 2019, 14:40

if i draw 50 Pixel Line ,How can I map it to cad measurement(millimeter)?

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

Re: Regarding Scaling

Post by support » 23 Oct 2019, 15:16

VijayKumar wrote:
23 Oct 2019, 14:40
if i draw 50 Pixel Line ,How can I map it to cad measurement(millimeter)?
Coordinate system of CAD drawing doesn’t use millimeters or any other real world units, it operates with decimal CAD drawing units. CAD units are converted to real world units when you print the drawing on paper (millimeters) or render it on screen (pixels).

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

VijayKumar
Posts: 11
Joined: 17 Oct 2019, 09:33

Re: Regarding Scaling

Post by VijayKumar » 24 Oct 2019, 10:09

On rendering how to calculate real units?

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

Re: Regarding Scaling

Post by support » 25 Oct 2019, 15:38

VijayKumar wrote:
24 Oct 2019, 10:09
On rendering how to calculate real units?
You may get a two-dimensional screen point (X, Y) from a CAD point using a CADImage.GetPoint method.

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

Post Reply