Delete Autosave

Delete Autosave

Anonymous
Not applicable
64,360 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
64,361 Views
118 Replies
Replies (118)
Message 2 of 119

Anonymous
Not applicable
IMHO Autosave has never been a viable method of protecting files. I have
always thought people to use the actual SAVE or QSAVE commands when they
feel comfortable with the state of the drawing.

"Dr. After" wrote in message
news:4861667@discussion.autodesk.com...
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
Message 3 of 119

Anonymous
Not applicable
You know, years ago on release 10, I wrote an autosave lisp routine.
Anytime an editing command was issued, it simply ran a routine that check
two things: one was how many editing commands had been issued, and the other
was how long it had been since the previous save; and if both of those
values exceed the setting you gave for it, it would issue a save to a series
of files (dwgname-) in a location of your choosing. It was far
ahead of it's time (considering no reactors at that time, as well as no
autosave built in). In this way, if someone was working like crazy it would
save at almost every save interval, but if someone was working a little
here, and a little there, it only saved one they had done "enough" work to
warrent a save point (like I said these values were user selected, but
defaults were set in the then acad.lsp). If I can get a good reactor set
going, I might try to recreate it, since it seems many people would find it
useful, unless someone out there wishes to take up the task of developing
the reactors.

The structure is simple:

if command begin, then execute "check function" to determine save, then
continue with command.

check function variables for a timer between saves, and one for a counter
that resets after a save.

a user interface to modify the check functions "trigger" levels (ie. 21
edits in 15 minutes, if both are greater than the trigger variables, then
save)

I think we could make an awesome opensource AUTOSAVE command by working
together. If anyone is interested, please post.

"Alan Henderson @ A'cad Solutions" <2005@R_E_M_O_V_E_acadsolutions.biz>
wrote in message news:4861718@discussion.autodesk.com...
IMHO Autosave has never been a viable method of protecting files. I have
always thought people to use the actual SAVE or QSAVE commands when they
feel comfortable with the state of the drawing.

"Dr. After" wrote in message
news:4861667@discussion.autodesk.com...
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
Message 4 of 119

Anonymous
Not applicable
Editing command list (off of the main modify toolbar):

ERASE
COPY
MIRROR
OFFSET
ARRAY
MOVE
ROTATE
SCALE
STRETCH
TRIM
EXTEND
BREAK
JOIN
CHAMFER
FILLET
EXPLODE

"Tim Decker" wrote in
message news:4861748@discussion.autodesk.com...
You know, years ago on release 10, I wrote an autosave lisp routine.
Anytime an editing command was issued, it simply ran a routine that check
two things: one was how many editing commands had been issued, and the other
was how long it had been since the previous save; and if both of those
values exceed the setting you gave for it, it would issue a save to a series
of files (dwgname-) in a location of your choosing. It was far
ahead of it's time (considering no reactors at that time, as well as no
autosave built in). In this way, if someone was working like crazy it would
save at almost every save interval, but if someone was working a little
here, and a little there, it only saved one they had done "enough" work to
warrent a save point (like I said these values were user selected, but
defaults were set in the then acad.lsp). If I can get a good reactor set
going, I might try to recreate it, since it seems many people would find it
useful, unless someone out there wishes to take up the task of developing
the reactors.

The structure is simple:

if command begin, then execute "check function" to determine save, then
continue with command.

check function variables for a timer between saves, and one for a counter
that resets after a save.

a user interface to modify the check functions "trigger" levels (ie. 21
edits in 15 minutes, if both are greater than the trigger variables, then
save)

I think we could make an awesome opensource AUTOSAVE command by working
together. If anyone is interested, please post.

"Alan Henderson @ A'cad Solutions" <2005@R_E_M_O_V_E_acadsolutions.biz>
wrote in message news:4861718@discussion.autodesk.com...
IMHO Autosave has never been a viable method of protecting files. I have
always thought people to use the actual SAVE or QSAVE commands when they
feel comfortable with the state of the drawing.

"Dr. After" wrote in message
news:4861667@discussion.autodesk.com...
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
Message 5 of 119

Anonymous
Not applicable
Also if using a command end, instead of command begin; you will need to
force a DBMOD to trigger a normal drawing exit polling.

"Tim Decker" wrote in
message news:4861777@discussion.autodesk.com...
Editing command list (off of the main modify toolbar):

ERASE
COPY
MIRROR
OFFSET
ARRAY
MOVE
ROTATE
SCALE
STRETCH
TRIM
EXTEND
BREAK
JOIN
CHAMFER
FILLET
EXPLODE

"Tim Decker" wrote in
message news:4861748@discussion.autodesk.com...
You know, years ago on release 10, I wrote an autosave lisp routine.
Anytime an editing command was issued, it simply ran a routine that check
two things: one was how many editing commands had been issued, and the other
was how long it had been since the previous save; and if both of those
values exceed the setting you gave for it, it would issue a save to a series
of files (dwgname-) in a location of your choosing. It was far
ahead of it's time (considering no reactors at that time, as well as no
autosave built in). In this way, if someone was working like crazy it would
save at almost every save interval, but if someone was working a little
here, and a little there, it only saved one they had done "enough" work to
warrent a save point (like I said these values were user selected, but
defaults were set in the then acad.lsp). If I can get a good reactor set
going, I might try to recreate it, since it seems many people would find it
useful, unless someone out there wishes to take up the task of developing
the reactors.

The structure is simple:

if command begin, then execute "check function" to determine save, then
continue with command.

check function variables for a timer between saves, and one for a counter
that resets after a save.

a user interface to modify the check functions "trigger" levels (ie. 21
edits in 15 minutes, if both are greater than the trigger variables, then
save)

I think we could make an awesome opensource AUTOSAVE command by working
together. If anyone is interested, please post.

"Alan Henderson @ A'cad Solutions" <2005@R_E_M_O_V_E_acadsolutions.biz>
wrote in message news:4861718@discussion.autodesk.com...
IMHO Autosave has never been a viable method of protecting files. I have
always thought people to use the actual SAVE or QSAVE commands when they
feel comfortable with the state of the drawing.

"Dr. After" wrote in message
news:4861667@discussion.autodesk.com...
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
Message 6 of 119

Anonymous
Not applicable
*Tim Decker* typed them thar words:

| You know, years ago on release 10, I wrote an autosave lisp routine.

Being that the autosave does work to an extent, it would be nice if we could
just have a script running that would search the autosave directory and
archive any new SV$ files into a new directory so that they would be
archived prior to AutoCAD deleting them. Any hope with that?

--
Dr. After
0 Likes
Message 7 of 119

Anonymous
Not applicable
Maybe if you monitor the SAVEFILE system and make a copy of the temporary
files into your preference folder, or before closing a drawing session,
monitor the SAVEFILEPATH and see if has temp files there....

Have not tried myself.


"Dr. After" wrote in message
news:4862020@discussion.autodesk.com...
*Tim Decker* typed them thar words:

| You know, years ago on release 10, I wrote an autosave lisp routine.

Being that the autosave does work to an extent, it would be nice if we could
just have a script running that would search the autosave directory and
archive any new SV$ files into a new directory so that they would be
archived prior to AutoCAD deleting them. Any hope with that?

--
Dr. After
0 Likes
Message 8 of 119

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

| Maybe if you monitor the SAVEFILE system and make a copy of the
| temporary files into your preference folder, or before closing a
| drawing session, monitor the SAVEFILEPATH and see if has temp files
| there....

Not quite sure what you are refering to...

But if I have to do another action prior to closing, that would not help. I
would basically like something to archive my SV$ files prior to autocad
closing (deleting the SV$ files, that is) that the user would never know is
even running.

--
Dr. After
0 Likes
Message 9 of 119

Anonymous
Not applicable
I am saying that is possible to grab those files [by copy them into another
folder] using a vlr-dwg-reactor and the :vlr-beginclose event, simple by
looking into the temporary folder defined by savefilepath for the *.sv$
extensions... I have not tried myself.... let me see if this thing can
work.....


"Dr. After" wrote in message
news:4862096@discussion.autodesk.com...
*Luis Esquivel* typed them thar words:

| Maybe if you monitor the SAVEFILE system and make a copy of the
| temporary files into your preference folder, or before closing a
| drawing session, monitor the SAVEFILEPATH and see if has temp files
| there....

Not quite sure what you are refering to...

But if I have to do another action prior to closing, that would not help. I
would basically like something to archive my SV$ files prior to autocad
closing (deleting the SV$ files, that is) that the user would never know is
even running.

--
Dr. After
0 Likes
Message 10 of 119

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

| let me see if this thing can work.....

let me know!

--
Dr. After
0 Likes
Message 11 of 119

Anonymous
Not applicable
Turn on MAKE BAK.

Autosave files $SV are deleted each time a save or qsave is issued, not just when autocad is properly closed. So if your savetime is set to 30 minutes, and you enter the save or qsave command 29 minutes before a crash, alll you'll have is the 29 minute old version to work with.

Better solution, save often.
0 Likes
Message 12 of 119

Anonymous
Not applicable
I think Randall has a better solution for you, do you still prefer what I
was offering?



"Dr. After" wrote in message
news:4862094@discussion.autodesk.com...
*Luis Esquivel* typed them thar words:

| let me see if this thing can work.....

let me know!

--
Dr. After
0 Likes
Message 13 of 119

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

| Turn on MAKE BAK.

cant find anything like that... Are you talking about isavebak? If so, I
have it set to "1" but it only creates a backup when you do a qsave or any
manual save.

--
Dr. After
0 Likes
Message 14 of 119

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

| I think Randall has a better solution for you,

who is Randall?

| do you still prefer what I was offering?

I still have not read anything in this thread or the original one in 2006
that had a better solution.

--
Dr. After
0 Likes
Message 15 of 119

Anonymous
Not applicable
Ok.... here is HTH

;; code starts here
(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\\" file)
t)))

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

(princ)
;; code ends here
0 Likes
Message 16 of 119

Anonymous
Not applicable
It's in the options command under "open and save" tab in the file safety
precautions section.


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

| Turn on MAKE BAK.

cant find anything like that... Are you talking about isavebak? If so, I
have it set to "1" but it only creates a backup when you do a qsave or any
manual save.

--
Dr. After
0 Likes
Message 17 of 119

Anonymous
Not applicable
*Doug Broad* typed them thar words:

| It's in the options command under "open and save" tab in the file
| safety
| precautions section.

Am I blind or is it not to be found?

--
Dr. After
0 Likes
Message 18 of 119

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

| Ok.... here is HTH

how should I use this? is it a lisp that will run in CAD or is it a script
that runs in windows?

--
Dr. After
0 Likes
Message 19 of 119

Anonymous
Not applicable
1. Copy the code into a lisp file and use appload
2. Then, change the minutes between saves like 1 minute just to run the
test...
3. Wait until you noticed that autosave has made the .sv$ file
4. Now, call the command qsave
5. Look into c:\\autosave folder and check if it is a copy of the last
autosave there.


"Dr. After" wrote in message
news:4862270@discussion.autodesk.com...
*Luis Esquivel* typed them thar words:

| Ok.... here is HTH

how should I use this? is it a lisp that will run in CAD or is it a script
that runs in windows?

--
Dr. After
0 Likes
Message 20 of 119

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

| 1. Copy the code into a lisp file and use appload
| 2. Then, change the minutes between saves like 1 minute just to run
| the test...
| 3. Wait until you noticed that autosave has made the .sv$ file
| 4. Now, call the command qsave
| 5. Look into c:\\autosave folder and check if it is a copy of the last
| autosave there.

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?

--
Dr. After
0 Likes