Message 1 of 9
Zoom Extents for Saving Drawing Preview for Block Catalog

Not applicable
05-29-2003
11:31 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am trying to create a routine that will
-resize the active drawing window to 300 X 400
(pixels) and then
(pixels) and then
-perform zoom extents to include and maximize the
contents within the drawing so the it is displayed as large as possible in the
drawing preview
contents within the drawing so the it is displayed as large as possible in the
drawing preview
-lastly saving the drawing
I will use scriptpro to perform this routine on
multiple drawings.
multiple drawings.
The code I have written so far is as
follows:
follows:
Sub SDWMain()
'Size Document
Window
'Size Document
Window
ThisDrawing.Width = 300
ThisDrawing.Height =
400
ZoomExtents 'The problem occurs here. For some reason the
zoom extents does not correctly recognize the new window size?
End Sub
Anyone have any insight why this is not rendering
the desired effects?
the desired effects?