Hi Jacqueline

You can control the scale in the layout by controling the zoom of your map

1:     find the width of your frame using Objectinfo(), or you can hardcode
it using MapBasic
1A : adjust the mapwindow to the frame using this formula
        Set window MyMap Width 10 height 10 * (frameHeight / FrameWidth)
2:    calculate the zoom of your mapwindow  - zoom = ( framewidth in cm ) *
(meter / cm in frame)
3:    set the zoom of your mapwindow using Set Map Window MyMap Zoom.....

Peter Laulund
National Survey And Cadastre, Denmark





Jacqueline Sloggett <[EMAIL PROTECTED]> - 30-06-99 08:11:15

Til:    "'Mapinfo-L'" <[EMAIL PROTECTED]>
cc:      (bcc: Peter Laulund/MI/KMS)
VedrÝrende:    MI Getting a value from the layout window in MB



Hi Everyone,

I need some assistance..

What I'm trying to do is create a mbx where I can set the scale of maps we
produce in the layout window eg 1:10 000.  I'm trying to use the formula
provided last year by Andrew Young which uses map scale, layout frame scale
and zoom window width.  I can get the values for map scale and for zoom
window width but haven't been able to find out how for layout frame scale
(the value denoted as scale on paper).  So any suggestions would be great
either to get this value or another way of setting map scales
automatically.

Thanks.

Jacqueline Sloggett
Plantation Analyst

Hancock Victorian Plantations
P.O. Box 534
Collins St West
Melbourne
Victoria 3000
Australia

E-mail: [EMAIL PROTECTED]


"We don't see things as they are, we see them as we are"  - Anais Nin
"Do or Do Not - There is No Try" - Yoda


Title: Getting a value from the layout window in MB

Hi Everyone,

I need some assistance..

What I'm trying to do is create a mbx where I can set the scale of maps we produce in the layout window eg 1:10 000.  I'm trying to use the formula provided last year by Andrew Young which uses map scale, layout frame scale and zoom window width.  I can get the values for map scale and for zoom window width but haven't been able to find out how for layout frame scale (the value denoted as scale on paper).  So any suggestions would be great either to get this value or another way of setting map scales automatically.

Thanks.

Jacqueline Sloggett
Plantation Analyst

Hancock Victorian Plantations
P.O. Box 534
Collins St West
Melbourne
Victoria 3000
Australia

E-mail: [EMAIL PROTECTED]
                                                                                                                                                                                     

"We don't see things as they are, we see them as we are"  - Anais Nin
"Do or Do Not - There is No Try" - Yoda

Reply via email to