Auto Save Settings
- Last UpdatedMar 14, 2024
- 1 minute read
By default, the AutoCAD Auto Save interval for a user, and whether this facility is active, is derived from the project configuration settings. Refer to the Miscellaneous Configuration Category of the AVEVA P&ID Project Administration program for details.
In order to override these project settings for an individual user, the following code in the "UserUtils" macro can be edited: The macro is accessible from Users" module of the VBA editor as described above.
Public Function SetProjectAutoSaveTimeSettings()
'' Set Autosave intervals according to value set in the project
Dim Value As String
Dim AutoSaveFlag As String
Dim SaveIntervals As String
Dim Pref As AcadPreferences
On Error Resume Next
Set Pref = Application.Preferences
AutoSaveFlag = "AUTOSAVE"
SaveIntervals = "SAVEINTERVAL"
Value = UCase(GetProjectDirective(AutoSaveFlag))
If Trim(Value) = "YES" Then
Value = UCase(GetProjectDirective(SaveIntervals))
Pref.OpenSave.AutoSaveInterval = CInt(Value)
Else
Pref.OpenSave.AutoSaveInterval = 0
End If
Err.Clear
End Function
Edit the highlighted line as required, e.g.
Pref.OpenSave.AutoSaveInterval = 40