PDA

View Full Version : Optional user prompt when autosave occurs



KevinBarnett
2004-10-05, 06:00 AM
Sometimes users have a mixture of small files and enormous files. It's ideal for savetime to be set to a small time period when drawings are small and a long time period when drawings are enormous. If the period is small and the file is enormous, then the user will become frustrated - waiting often for the autosave to save. It would be great if there was an option available to prompt the user -
e.g. Autosave about to occur. Continue with autosave Y/N ?

It should be an option like, AutoSavePrompt value 0 - no prompt, value 1 - prompt occurs.

BrenBren
2004-10-05, 12:54 PM
Better to wait and be safe, then not save and lose hours of work.

KevinBarnett
2004-10-05, 02:30 PM
Ah but then again, what about when autosave occurs just as you are completing a critical edit session with your boss breathing down your neck wanting a hard copy urgently. Think again - is this really a Bad thread :-( ???!!!

jaberwok
2004-10-05, 07:07 PM
So change the autosavetime.

If acad warns you, it's no longer an autosave, it's a reminder.

BrenBren
2004-10-05, 07:43 PM
Ah but then again, what about when autosave occurs just as you are completing a critical edit session with your boss breathing down your neck wanting a hard copy urgently. Think again - is this really a Bad thread :-( ???!!!
Everyone is entitled to their own opinion - that is the point of rating the threads in the wish list. Everyone should be rating the threads, whether they like them or not. That will give AUGI, and ultimately Autodesk, a better idea of what the users want in the product.

So far, only 2 people have voted for this wish, and I am assuming that you did not, since the rating is so low.

ntaylor
2004-10-05, 11:11 PM
We have Autosave set to 120 minutes so effectively we might as well not have it on. In over 5 years we have never had any problems. My recommendation would be don't rely on Autosaves just get in the habit of doing regular QSAVES then you don't have to worry about Autosaves interupting your work.

Looking forward to plenty of people bagging my suggestion - Nathan

mjfarrell
2004-10-05, 11:36 PM
I live in a no autosave world the majority of the time.
One might ask why? The reason is pretty simple in
Land Desktop, there is practically no UNDO feature
to the land desktop database, undo works on cad
objects and commands, not the database. So there
is no need to autosave, or even qsave as most if not all
the lines that represent the design can be imported in from
the database. So even not saving isn't always a bad thing.
When doing regular cad in MAP I do have autosave
set to 15 minutes.

KevinBarnett
2004-10-06, 05:08 AM
Oooops.. looks like there's no need for an option... I keep forgetting that Acad has such wonderful open architecture. In VBA you can capture the event:

Private Sub AcadDocument_BeginSave(ByVal FileName As String)
If Trim(ThisDrawing.GetVariable("cmdnames")) = "" Then

'''' When save is occurring and no cmdnames value then the save is an autosave

If vbNo = MsgBox("About to AutoSave! Continue?", vbYesNo) Then

'''' Still looking for code to put in here to stop the save....

End If
End If
End Sub

ntaylor
2004-10-06, 05:23 AM
So close yet so far, you cannot cancel the save. In 2005 there is a BeginDocClose event that allows you to cancel the close as well as the BeginClose event that doesn't allow you to cancel. I presume BeginDocClose is a new event so another new event could be BeginDocSave that allows you to cancel. I would suggest you post this to the API Wishlist forum.
Regards - Nathan

KevinBarnett
2004-10-06, 05:35 AM
Found It!!!! Yippee!!!!!

Private Sub AcadDocument_BeginSave(ByVal FileName As String)
If Trim(ThisDrawing.GetVariable("cmdnames")) = "" Then
If vbNo = MsgBox("About to AutoSave! Continue?", vbYesNo) Then
SendKeys "{ESC}"
End If
End If
End Sub

:-) :-) :-)

KevinBarnett
2004-10-06, 05:53 AM
Doh!!! Nathan is right! The save happens before the esc key is sent!!! Grrrrrrrrr...

KevinBarnett
2004-10-06, 06:45 AM
My code was slightly wrong. I left out a critical option of the SendKeys method.

It is possible to cancel the command - SendKeys "{ESC}",True

This works 100% when a command is actually active and the autosave "kicks-in". BUT if not, then you get the wonderful message "FATAL ERROR".

I think we should remove this thread. The user should be aware enough to disable autosave (savetime 0) when working with ENORMOUS files (say in excess of 70mb) and diligent enough to execute Save whenever possible.

Mike.Perry
2004-10-06, 11:29 AM
Hi Kevin

Would you not rather this thread moved to one of the following Forums -

API Wish List (http://forums.augi.com/forumdisplay.php?f=90)

VBA (http://forums.augi.com/forumdisplay.php?f=92)

You decide, Move or Delete?

I will then happily carry out your request.

Thanks, Mike

Forum Moderator

KevinBarnett
2004-10-06, 02:07 PM
:-) Hi Mike... Best it stay, someone might find some of the content useful. Especially when searching for autosave.

Mike.Perry
2004-10-06, 02:11 PM
Hi Kevin

Ok!

But I will move this thread to the ACAD 2005 General (http://forums.augi.com/forumdisplay.php?f=58) Forum as strictly speaking it's no longer a Wish List Item.

Hope that's ok! please just shout if not.

:beer: Mike