Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Tek-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
Apr 5, 2005
135
0
0
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
 
Replies continue below

Recommended for you

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.
Back
Top