Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MintJulep on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to Auto Zoom Extents when saving?

Status
Not open for further replies.

Darken99

Mechanical
Joined
Apr 5, 2005
Messages
135
Location
US
I remember there being a dialog box to enter script in when you are saving, but I am unable to locate it now. Anyone have any tips?

Thanks
 
Make a toolbar button and use this as the macro:
^C^CZOOM;E;QSAVE;
 
Is there a way to make it go to model space then zoom then save?
 
create a new vba project ...

double click "thisdrawing" on the left tree.

a window will be opened.

then search for the "AcadDocument_BeginSave" method

add this in the begin save code

Code:
Private Sub AcadDocument_BeginSave(ByVal FileName As String)
ThisDrawing.SendCommand "^^Ctm 1 "
ThisDrawing.SendCommand "^^Cz e "
End Sub
 
ipsieferts' post is the key.
add "ms_" where the "underscore" is a "space (or semicolon-";" will do) just after the "^c^c" combo. You don't need any visual basic scripts or such. 3 characters added to the beginning if the qsave script in ipsiefert's and you're done.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top