Author Topic: Autosave keeps turning off  (Read 1916 times)

0 Members and 1 Guest are viewing this topic.

ELOQUINTET

  • Guest
Autosave keeps turning off
« on: September 14, 2006, 02:54:20 PM »
We have noticed recently that Autosave keeps turning off on certain computers but not all. For the most part we are all running the same routines and I did a search through these routines for anything concerning the savetime variable and search comes up empty. As a temporary fix i put a setvar savetime 5 into acad.lsp but this is just a workaround. I was looking on the discussion forums and saw that it may be caused by the publish command crashing. it said that publish temporarily disables autosave but if it crashes it can remain turned off. there was a vba reactor to reset it after each command but wouldn't that slow us down. is there a way to reset the savetime variable or write a reactor when the variable has a value of 0. i read a post on here about this. did anyone ever develop this? it would be great at helping me analyze what is affecting our settings. any thoughts?

David Hall

  • Automatic Duh Generator
  • King Gator
  • Posts: 4076
Re: Autosave keeps turning off
« Reply #1 on: September 14, 2006, 03:56:01 PM »
i never found it 100% so I have a routine that saves after a # of commands - but only useful commands, not pan, zoom, undo, etc.  you want it?
Everyone has a photographic memory, Some just don't have film.
They say money can't buy happiness, but it can buy Bacon and that's a close second.
Sometimes the question is more important than the answer. (Thanks Kerry for reminding me)

ELOQUINTET

  • Guest
Re: Autosave keeps turning off
« Reply #2 on: September 15, 2006, 02:06:13 PM »
sure that would be helpful to look at. post it please thank you sir

David Hall

  • Automatic Duh Generator
  • King Gator
  • Posts: 4076
Re: Autosave keeps turning off
« Reply #3 on: September 15, 2006, 02:32:01 PM »
all of this goes in the ThisDrawing module of acad.dvb
Code: [Select]
Option Explicit
Dim command_count As Long    'Used in AcadDocument_EndCommand function
Private Sub AcadDocument_EndCommand(ByVal CommandName As String)
    '***Below code is to AUTO save the drawing every 25 commands,
    If ThisDrawing.GetVariable("DWGTITLED") = 1 Then    'don't use on new, unsaved drawings
        Select Case CommandName
        Case UCase("undo"), UCase("u"), UCase("zoom"), UCase("z"), UCase("pan")
            command_count = command_count
        Case UCase("QSAVE"), UCase("SAVE")
            command_count = 0
                    Case Else
            command_count = command_count + 1
            If command_count = 25 Then    'change this to any number you want
                ThisDrawing.Save
                command_count = 0
            End If
        End Select
    End If
End Sub
« Last Edit: September 15, 2006, 02:34:26 PM by CmdrDuh »
Everyone has a photographic memory, Some just don't have film.
They say money can't buy happiness, but it can buy Bacon and that's a close second.
Sometimes the question is more important than the answer. (Thanks Kerry for reminding me)

ELOQUINTET

  • Guest
Re: Autosave keeps turning off
« Reply #4 on: September 16, 2006, 05:37:37 PM »
cool i'll give this a try on monday thanks

pmvliet

  • Guest
Re: Autosave keeps turning off
« Reply #5 on: September 20, 2006, 08:17:06 AM »
I use to see where savetime would always default back to it's original setting of 120  minutes. This was in 2002 and never could figure out why. We then dropped the savetime variable into a startup lisp. I figured it had to do something with the profile/registry where that is stored...

Pieter

ELOQUINTET

  • Guest
Re: Autosave keeps turning off
« Reply #6 on: September 20, 2006, 09:00:30 AM »
yeah i added it to our acad.lsp but would also like it set periodically during a drawing session just in case. some users here don't close their drawings at the end of the day as we don't shut down our computers so autosave could get turned off and the user wouldn't know it and it wouldn't be restored because they didn't close the drawing. it's just a safeguard i personally close autocad at the end of each day but not everyone does  :|

Greg B

  • Seagull
  • Posts: 12417
  • Tell me a Joke!
Re: Autosave keeps turning off
« Reply #7 on: September 20, 2006, 10:06:05 AM »
some users here don't close their drawings at the end of the day

Yeah...that's because when I get in in the morning, and after I check my email, chat rooms, fantasy football, baseball, nascar leagues, I don't want to wait for a drawing to open.

I'm trying to save time.

whdjr

  • Guest
Re: Autosave keeps turning off
« Reply #8 on: September 20, 2006, 02:17:09 PM »
Yeah...that's because when I get in in the morning, and after I check my email, chat rooms, fantasy football, baseball, nascar leagues, I don't want to wait for a drawing to open.
...

It's good to know I'm not the only one out there that does that.   :-)