Page 1 of 1

Regarding Scaling

Posted: 23 Oct 2019, 12:47
by VijayKumar
Hello Team,

What is MMToPixelX and how to calculate Real Scale?

Re: Regarding Scaling

Posted: 23 Oct 2019, 13:15
by support
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

Re: Regarding Scaling

Posted: 23 Oct 2019, 14:08
by VijayKumar
How can I map it for different Zoom Level and Different images?

Re: Regarding Scaling

Posted: 23 Oct 2019, 14:32
by support
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

Re: Regarding Scaling

Posted: 23 Oct 2019, 14:40
by VijayKumar
if i draw 50 Pixel Line ,How can I map it to cad measurement(millimeter)?

Re: Regarding Scaling

Posted: 23 Oct 2019, 15:16
by support
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

Re: Regarding Scaling

Posted: 24 Oct 2019, 10:09
by VijayKumar
On rendering how to calculate real units?

Re: Regarding Scaling

Posted: 25 Oct 2019, 15:38
by support
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