|
The Autosave feature in AutoCAD does not save
the drawing you are working on, but saves a copy of your drawing to a directory
stored in the Savefilepath system variable. This drawing does not have the same
name as your drawing file and can be overwritten with subsequent Autosaves.
Here's a little VBA application which I wrote that will save your drawings at a
user determined interval. (or very close.) It basically takes the time from the
system clock and stores it in one of the User system variables. Every time you
select "Line," "Pline," or "Zoom," the application
checks to see if 15 minutes has passed. If it hasn't, it does nothing. If it
has, it saves the drawing and then resets the stored time to the system time.
(Phew!) '<--Start Coding Here Option Explicit Private Sub AcadDocument_BeginCommand(ByVal CommandName As String) Dim OldTime 'trigger when user selects 'get the time now 'get the time stored in USERI2 'If the time has not been set 'set the time 'then end End If 'if the difference is greater that 15
minutes 'save the drawing 'and then reset Useri2 End If ' end of the Select End End Sub 'End Coding Here--> |
|