layout paper limit coordinates

layout paper limit coordinates

Anonymous
Not applicable
216 Views
3 Replies
Message 1 of 4

layout paper limit coordinates

Anonymous
Not applicable
Hello VBA users,

I would like to draw a rectangle that is the exact size of the printers
paper limits, maybe get the lower left and upper right coordinates. Does a
method exist that will give me this info?

Thanks,

Jeff Jensen, jjensen@co.clark.nv.us
0 Likes
217 Views
3 Replies
Replies (3)
Message 2 of 4

Anonymous
Not applicable
Hi JJensen,

Oops !... Forget my last answer. you can get the CanonicalMediaName list of the
Layout :

Dim MediaNameList As Variant

MediaNameList = ThisDrawing.ActiveLayout.GetCanonicalMediaNames

Then, look for the biggest size and draw your rectangle.

ANSI :

A = 11’’ x 8.5’’
B = 17’’ x 11’’
C = 22’’ x 17’’
D = 34’’ x 22’’
E = 44’’ x 34’’

ISO :

A4 = 297 x 210 mm
A3 = 420 x 297 mm
A2 = 594 x 420 mm
A1 = 840 x 594 mm
A0 = 1188 x 840 mm

1 Inch = 25.4 mm

Driss.

Driss Nabih a écrit:

> Hello Jeff,
>
> Try the 'Getvariable' Method to get the "EXTMIN" "EXTMAX" after a Zoom Extends
>
> Value = Thisdrawing.Getvariable ("EXTMIN")
>
> The Model Space has to be active.
>
> Driss.
>
> jjensen a écrit:
>
> > Hello VBA users,
> >
> > I would like to draw a rectangle that is the exact size of the printers
> > paper limits, maybe get the lower left and upper right coordinates. Does a
> > method exist that will give me this info?
> >
> > Thanks,
> >
> > Jeff Jensen, jjensen@co.clark.nv.us
0 Likes
Message 3 of 4

Anonymous
Not applicable
But that is the paper size. The original request was for the size of the
printable area (paper limits).

"Driss Nabih" wrote in message
news:3896C2B8.67DC97CD@club-internet.fr...
> Hi JJensen,
>
> Oops !... Forget my last answer. you can get the CanonicalMediaName list
of the
> Layout :
>
> Dim MediaNameList As Variant
>
> MediaNameList = ThisDrawing.ActiveLayout.GetCanonicalMediaNames
>
> Then, look for the biggest size and draw your rectangle.
>
> ANSI :
>
> A = 11'' x 8.5''
> B = 17'' x 11''
> C = 22'' x 17''
> D = 34'' x 22''
> E = 44'' x 34''
>
> ISO :
>
> A4 = 297 x 210 mm
> A3 = 420 x 297 mm
> A2 = 594 x 420 mm
> A1 = 840 x 594 mm
> A0 = 1188 x 840 mm
>
> 1 Inch = 25.4 mm
>
> Driss.
>
> Driss Nabih a écrit:
>
> > Hello Jeff,
> >
> > Try the 'Getvariable' Method to get the "EXTMIN" "EXTMAX" after a Zoom
Extends
> >
> > Value = Thisdrawing.Getvariable ("EXTMIN")
> >
> > The Model Space has to be active.
> >
> > Driss.
> >
> > jjensen a écrit:
> >
> > > Hello VBA users,
> > >
> > > I would like to draw a rectangle that is the exact size of the
printers
> > > paper limits, maybe get the lower left and upper right coordinates.
Does a
> > > method exist that will give me this info?
> > >
> > > Thanks,
> > >
> > > Jeff Jensen, jjensen@co.clark.nv.us
>
0 Likes
Message 4 of 4

Anonymous
Not applicable
Hi Frank,

If your talking about the margin ... sorry.. I don't know...

Driss.

Frank Oquendo a écrit:

> But that is the paper size. The original request was for the size of the
> printable area (paper limits).
>
> "Driss Nabih" wrote in message
> news:3896C2B8.67DC97CD@club-internet.fr...
> > Hi JJensen,
> >
> > Oops !... Forget my last answer. you can get the CanonicalMediaName list
> of the
> > Layout :
> >
> > Dim MediaNameList As Variant
> >
> > MediaNameList = ThisDrawing.ActiveLayout.GetCanonicalMediaNames
> >
> > Then, look for the biggest size and draw your rectangle.
> >
> > ANSI :
> >
> > A = 11'' x 8.5''
> > B = 17'' x 11''
> > C = 22'' x 17''
> > D = 34'' x 22''
> > E = 44'' x 34''
> >
> > ISO :
> >
> > A4 = 297 x 210 mm
> > A3 = 420 x 297 mm
> > A2 = 594 x 420 mm
> > A1 = 840 x 594 mm
> > A0 = 1188 x 840 mm
> >
> > 1 Inch = 25.4 mm
> >
> > Driss.
> >
> > Driss Nabih a écrit:
> >
> > > Hello Jeff,
> > >
> > > Try the 'Getvariable' Method to get the "EXTMIN" "EXTMAX" after a Zoom
> Extends
> > >
> > > Value = Thisdrawing.Getvariable ("EXTMIN")
> > >
> > > The Model Space has to be active.
> > >
> > > Driss.
> > >
> > > jjensen a écrit:
> > >
> > > > Hello VBA users,
> > > >
> > > > I would like to draw a rectangle that is the exact size of the
> printers
> > > > paper limits, maybe get the lower left and upper right coordinates.
> Does a
> > > > method exist that will give me this info?
> > > >
> > > > Thanks,
> > > >
> > > > Jeff Jensen, jjensen@co.clark.nv.us
> >
0 Likes