Delete Autosave

Delete Autosave

Anonymous
Not applicable
68,866 Views
118 Replies
Message 1 of 119

Delete Autosave

Anonymous
Not applicable
Apparently AutoCAD will delete the autosave if it feels it was shut down
correctly. Well mine crashed yesterday and the autosaves were all deleted
so I ended up losing all my work since the previous qsave. I would like to
know if there is a variable for this or a way we could change it to just
never delete? I would be glad to manually purge the directory, but I never
want what happened yesterday to happen again. It makes autosave rather
pointless in my book.

--
Dr. After
0 Likes
68,867 Views
118 Replies
Replies (118)
Message 21 of 119

Anonymous
Not applicable
Look into the new folder the program creates for you, it must be in the
C:\\AUTOSAVE...


Created a LSP file named autosave.lsp with that script. Loaded it. Had it
do the autosave. Checked for the SV$ file and it was there. Did a qsave.
Checked for the SV$ file and it was gone. Only the DWL file remains. Did I
do something wrong?
0 Likes
Message 22 of 119

Anonymous
Not applicable
*Luis Esquivel* typed them thar words:

| Look into the new folder the program creates for you, it must be in
| the C:\\AUTOSAVE...

I'm a nincompoop...

works great! THANKS!!!

--
Dr. After
0 Likes
Message 23 of 119

Anonymous
Not applicable
Yours is on, it's under the time for autosave in the lower left corner. You've checked the box "Create backup copy with each save"

Now set your savetime (the time box) to something short like 10 minutes. Every 10 minutes the autosave will make a $SV and create a BAK out of the previous $SV. Can't lose more than 20 minutes work.

REMEMBER that entering the SAVE or QSAVE commands will delete the $SV. If it has been deleted, it's not there to be renamed BAK.
0 Likes
Message 24 of 119

Anonymous
Not applicable
In that case I already had it set up the way you described and it didn't
work. The LSP routine that Luis did is excellent, though! It makes a copy
of the most recent autosave in a location that autodesk does not know exists
and therefore it does not delete it. Good one!!!!

--
Dr. After
0 Likes
Message 25 of 119

Anonymous
Not applicable
not quite, the .bak from .$sv is only created once (at the beginning of the
next session).

I was corrected m'self on this point earlier this year (rel 2005).

If every $sv was saved, my temp folder would reach critical mass very
quickly.

wrote in message news:4862434@discussion.autodesk.com...
Every 10 minutes the autosave will make a $SV and create a BAK out of the
previous $SV.
0 Likes
Message 26 of 119

Anonymous
Not applicable
Then.... just change it for something like this....

(vl-load-com)

(if (not (vl-file-directory-p "C:\\AUTOSAVE\\"))
(vl-mkdir "C:\\AUTOSAVE\\"))

(defun copy_sv$ (reactor params)
(foreach file (vl-directory-files (getvar "SAVEFILEPATH") "*.SV$")
(vl-file-copy
(strcat (getvar "SAVEFILEPATH") "\\" file)
(strcat "C:\\AUTOSAVE\\" "BAK_" (getvar "DWGNAME"))
t)))

(if (not dwg_reactor)
(setq dwg_reactor
(vlr-dwg-reactor nil '((:vlr-beginsave . copy_sv$)))))

(princ)


"doug k" wrote in message
news:4862503@discussion.autodesk.com...
not quite, the .bak from .$sv is only created once (at the beginning of the
next session).

I was corrected m'self on this point earlier this year (rel 2005).

If every $sv was saved, my temp folder would reach critical mass very
quickly.

wrote in message news:4862434@discussion.autodesk.com...
Every 10 minutes the autosave will make a $SV and create a BAK out of the
previous $SV.
0 Likes
Message 27 of 119

Anonymous
Not applicable
Well that's how it works in R2002, and yes the temp dir can fill quickly.
0 Likes
Message 28 of 119

Anonymous
Not applicable
> In that case I already had it set up the way you described and it didn't work.

What do you mean by "didn't work". IF the $SV wasn't there, you had apparently entered a save or qsave since the last autosave. That would make the DWG file the latest copy.
0 Likes
Message 29 of 119

Anonymous
Not applicable
> The LSP routine that Luis did is excellent, though! It makes a copy of the most recent autosave in a location that autodesk does not know exists and therefore it does not delete it. Good one!!!!

Use a similar one once before. Now you have two directories to keep maintained.
0 Likes
Message 30 of 119

Anonymous
Not applicable
*OLD-CADaver* typed them thar words:

| What do you mean by "didn't work". IF the $SV wasn't there, you had
| apparently entered a save or qsave since the last autosave. That
| would make the DWG file the latest copy.

I tell you what. Why don't you and R.K. McSwain try and figure that one
out. He was over in the 2006 newsgroup trying to convince me that my
autocad didn't crash without warning. I understand your logic as being
correct according to the way AutoCAD should work, but God did not write the
program...

--
Dr. After
0 Likes
Message 31 of 119

Anonymous
Not applicable
*OLD-CADaver* typed them thar words:

| Use a similar one once before. Now you have two directories to keep
| maintained.

actually no... I can revert the autosave directory back to the default temp
directory and it never needs manual mantainence. So I am only having to
purge the newly created folder now and then. Needless to say I have very
good security that my drawings are getting backed up automatically while I
work! You can't say that, now can you?

Thanks again Luis!!!

--
Dr. After
0 Likes
Message 32 of 119

Anonymous
Not applicable
*OLD-CADaver* typed them thar words:

| Well that's how it works in R2002, and yes the temp dir can fill
| quickly.

actually doug k is right and it works the same in 2002 as it does in 2006.

--
Dr. After
0 Likes
Message 33 of 119

Anonymous
Not applicable
>>>Thanks again Luis!!!

No problema...

The last code I uploaded will make sure to have a single copy of the drawing
into the c:\\autosave folder with the same filename and the prefix "bak_",
if the .sv$ file is created... the new changes will be appended.
0 Likes
Message 34 of 119

Anonymous
Not applicable
I like it. Thanks for sharing.

--
Gary Fowler - Architect
gdfowler@hotmail.com
"Luis Esquivel" wrote in message
news:4862496@discussion.autodesk.com...
Then.... just change it for something like this....

(vl-load-com)

(if (not (vl-file-directory-p "C:\\AUTOSAVE\\"))
(vl-mkdir "C:\\AUTOSAVE\\"))

(defun copy_sv$ (reactor params)
(foreach file (vl-directory-files (getvar "SAVEFILEPATH") "*.SV$")
(vl-file-copy
(strcat (getvar "SAVEFILEPATH") "\\" file)
(strcat "C:\\AUTOSAVE\\" "BAK_" (getvar "DWGNAME"))
t)))

(if (not dwg_reactor)
(setq dwg_reactor
(vlr-dwg-reactor nil '((:vlr-beginsave . copy_sv$)))))

(princ)


"doug k" wrote in message
news:4862503@discussion.autodesk.com...
not quite, the .bak from .$sv is only created once (at the beginning of the
next session).

I was corrected m'self on this point earlier this year (rel 2005).

If every $sv was saved, my temp folder would reach critical mass very
quickly.

wrote in message news:4862434@discussion.autodesk.com...
Every 10 minutes the autosave will make a $SV and create a BAK out of the
previous $SV.
0 Likes
Message 35 of 119

Anonymous
Not applicable
Well, yes I can, but it has nothing to do with Autosave. Rather than
relying on a feature that was designed ONLY for catastrophic failures, we
use Save and Qsave as they were designed. Then our network has a 10 minute
mirror server, that backs up edited files every 10 minutes, and the primary
server is backed up every hour.

"Dr. After" wrote in message
news:4862639@discussion.autodesk.com...
Needless to say I have very
good security that my drawings are getting backed up automatically while I
work! You can't say that, now can you?
0 Likes
Message 36 of 119

Anonymous
Not applicable
Can't speak for R2006. But in R2002, regardless of doug k's post, the $SV
file is created when the autosavetime is exceeded without the execution of
SAVE or QSAVE. Upon the proper closing of AutoCAD, or the execution of the
SAVE or QSAVE commands, the current $SV is deleted. It ONLY remains, if
AutoCAD is not properly closed.

If "Create backup file" is "on", and the autosavetime is exceeded TWICE,
without the execution of SAVE or QSAVE, the current $SV is renamed to BAK,
and a new $SV is created. Again, upon the proper closing of AutoCAD, or the
execution of the SAVE or QSAVE commands, the current $SV is deleted, but the
BAK file remains. IF autosavetime is set to 10 minutes, and one works for 1
hour without saving or qsaving, there will be 5 BAK files and one $SV file.


"Dr. After" wrote in message
news:4862609@discussion.autodesk.com...
*OLD-CADaver* typed them thar words:

| Well that's how it works in R2002, and yes the temp dir can fill
| quickly.

actually doug k is right and it works the same in 2002 as it does in 2006.

--
Dr. After
Message 37 of 119

Anonymous
Not applicable
There are other options, many of which would require you or someone in your
organization to have screwed up. But we're quite sure that didn't happen
right? I mean you ARE looking in the right directory for the $SV, right?
No one in your organization could have possibly changed the directory for
the autosave file, right? No one in your organization has loaded a reactor
to move the $sv to some other secure directory have they? Right? No one
reset the autosavetime to something larger than you had expected? right?
Surely none of these errors or a dozen similar has happened to you, right?
It just HAS to be the feature that has been working just fine for thousands
of users over the last 8 or 10 years. That's the logical answer, right?

"Dr. After" wrote in message
news:4862608@discussion.autodesk.com...
*OLD-CADaver* typed them thar words:

| What do you mean by "didn't work". IF the $SV wasn't there, you had
| apparently entered a save or qsave since the last autosave. That
| would make the DWG file the latest copy.

I tell you what. Why don't you and R.K. McSwain try and figure that one
out. He was over in the 2006 newsgroup trying to convince me that my
autocad didn't crash without warning. I understand your logic as being
correct according to the way AutoCAD should work, but God did not write the
program...

--
Dr. After
0 Likes
Message 38 of 119

Anonymous
Not applicable
if this is true, then 2005/2006 uses a different method than 2002. With
2005, you will only get one .bak file per session in the autosave folder.

IIRC, 2000i autosave behaved the same as 2005. Weird that 2002 would be
different.

"Randall Culp" wrote in message
news:4862851@discussion.autodesk.com...
IF autosavetime is set to 10 minutes, and one works for 1
hour without saving or qsaving, there will be 5 BAK files and one $SV file.
0 Likes
Message 39 of 119

Anonymous
Not applicable
wrote in message news:4862434@discussion.autodesk.com...
>> Yours is on, it's under the time for autosave in the lower left
>> corner. You've checked the box "Create backup copy with each save"


OLD, This setting is irrevelent to "Dr After", since he has made it clear that he doesn't use QSAVE, SAVE or SAVEAS.

See his two posts in the 2006 NG

06/01/2005, 7:54 AM, where "Dr. After" said

"I sat down and started working at about 1:30 and
had it crash at about 4. I never quit working
that whole time and did infact lose all of that work."


-and-

06/01/2005, 8:01 AM, where "Dr. After" said

"I will never qsave ever again..."
0 Likes
Message 40 of 119

Anonymous
Not applicable
*Randall Culp* typed them thar words:

| That's the logical answer, right?

Sure... if you make assumptions from your ignorance of our setup here.

Bottom line:
I control all the computers and anything that happens to them.
I am the only full time draftsman and the only one who controls any options
or settings for all our 2 AutoCAD seats.
I am fully aware of all the directory paths assigned to AutoCAD and all LSP
or VBA programs running.
I am the only person who ever touches or has access to my computer which is
on a peer-to-peer LAN.

I don't know how to make this more clear for the skeptics, but AutoCAD
deleted the SV$ files when it crashed. It's not supposed to, and in fact it
will give you a warning during most crashes, however this time it did not.
It was like I saved and closed, but I didn't do either.

Sorry to be a little agitated, but if anyone wants to keep hounding me about
saving often, AutoCAD doesn't delete the files when it crashes, blah blah
blah... I'm going to lose it!

I made a mistake at the wrong time and am suffering enough consequences on
my own. If you can't help with stopping the problem from happening again,
then just stay the heck out of this thread.

--
Dr. After
0 Likes