AutoSave Problem with BeginSave Event

Discussion in 'AutoCAD' started by thenov, Oct 12, 2004.

  1. thenov

    thenov Guest

    I have written a BeginSave event to process some things before every save. It works great except for 1 thing. When the AutoSave function kicks in it does the AutoSave multiple times. Some times 10, 15, or 20 time with the same AutoSave File Name. I think AutoCAD is locked up but in reality it is the AutoSave running multiple times that is causing the problem.
    Anyone have any ideas? Do I have to reset some timer to get the AutoSave to function properly. The SAVETIME system variable remains unchanged at 20. Please let me know.
     
    thenov, Oct 12, 2004
    #1
  2. Hi,

    I don't know if that can help, but in one project I process the BeginSave
    event, I too have problems with AutoSave. The way I do it is that I "filter"
    the events by comparing the name of the actual document with the name coming
    from the argument of BeginSave:

    If they are the same

    It is a "regular" save

    If they are not the same

    If extension is "SV$"

    It is AutoSave, forget it

    If extension is "a$c"

    CopyClip is involved, forget it

    Else

    It is SaveAs

    Hope it helps.

    Gilles

    It works great except for 1 thing. When the AutoSave function kicks in it
    does the AutoSave multiple times. Some times 10, 15, or 20 time with the
    same AutoSave File Name. I think AutoCAD is locked up but in reality it is
    the AutoSave running multiple times that is causing the problem.
    to function properly. The SAVETIME system variable remains unchanged at 20.
    Please let me know.
     
    Gilles Plante, Oct 15, 2004
    #2
  3. thenov

    thenov Guest

    I solved the problem. I set the SAVETIME variable to ZERO before I process anything in my BeginSave Event. Then when I am done doing things in the BeginSave Event I restore the SAVETIME variable to what it was before my BeginSave Event. It seems to have worked for me. Maybe it will help you.
    Thanks!
     
    thenov, Oct 15, 2004
    #3
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.