Author Topic: autosave Q...  (Read 8282 times)

0 Members and 1 Guest are viewing this topic.

t-bear

  • Guest
autosave Q...
« on: August 04, 2004, 11:45:27 AM »
Had a request to make the autosave function save as a .bak and to the current directory.  Anyone have any ideas? Can it even be done?

Sitra

  • Guest
autosave Q...
« Reply #1 on: August 04, 2004, 12:14:00 PM »
Not to sure but, can't you set that up in your options.

t-bear

  • Guest
autosave Q...
« Reply #2 on: August 04, 2004, 12:25:27 PM »
I can define a *specific* directory but I need to set it up to save to the *current* directory.  Reason: we have located a proggy that lists .bak files in the current directory, renames the selected *.bak to *.bak.dwg and opens the file.  We would like the autosave to save to that directory to utilize this routine......

CADaver

  • Guest
autosave Q...
« Reply #3 on: August 04, 2004, 12:42:17 PM »
Code: [Select]
(setvar "SAVEFILEPATH" (getvar "DWGPREFIX"))
maybe

t-bear

  • Guest
autosave Q...
« Reply #4 on: August 04, 2004, 12:50:00 PM »
Funny thing just happened...saw a new post under VeeBeeAee and, IF I can figure out how to set up a VBA routine, this might be just the ticket.....check it out.

Film at eleven

ronjonp

  • Needs a day job
  • Posts: 7527
autosave Q...
« Reply #5 on: August 04, 2004, 01:34:59 PM »
Quote
(setvar "SAVEFILEPATH" (getvar "DWGPREFIX"))


Works like a charm. Just add that line to your acaddoc.lsp.

Good call CADAVER.
 :D

Windows 11 x64 - AutoCAD /C3D 2023

Custom Build PC

t-bear

  • Guest
autosave Q...
« Reply #6 on: August 04, 2004, 01:54:14 PM »
So....how do I set it up to autosave every 10 minutes?

M-dub

  • Guest
autosave Q...
« Reply #7 on: August 04, 2004, 01:57:42 PM »
Tools>Options>Open and Save
File Safety Precautions...
Automatic save:
10 minutes between saves

ronjonp

  • Needs a day job
  • Posts: 7527
autosave Q...
« Reply #8 on: August 04, 2004, 02:42:32 PM »
Quote
So....how do I set it up to autosave every 10 minutes?


or you can put this in your acaddoc.lsp

(setvar 'isavebak 1)     <- makes sure a .bak file is created
(setvar 'isavepercent 0)     <- creates a full save everytime
(setvar 'savetime 10)     <- sets autosave to 10 minutes
(setvar 'savefilepath (getvar "dwgprefix"))

HTH

Windows 11 x64 - AutoCAD /C3D 2023

Custom Build PC

CADaver

  • Guest
autosave Q...
« Reply #9 on: August 04, 2004, 03:01:29 PM »
Quote from: ronjonp
or you can put this in your acaddoc.lsp

(setvar 'isavebak 1)     <- makes sure a .bak file is created
(setvar 'isavepercent 0)     <- creates a full save everytime
(setvar 'savetime 10)     <- sets autosave to 10 minutes
(setvar 'savefilepath (getvar "dwgprefix"))

HTH


oooo, I like it.

M-dub

  • Guest
autosave Q...
« Reply #10 on: August 04, 2004, 03:01:48 PM »
Quote from: ronjonp
Quote
So....how do I set it up to autosave every 10 minutes?


or you can put this in your acaddoc.lsp

(setvar 'isavebak 1)     <- makes sure a .bak file is created
(setvar 'isavepercent 0)     <- creates a full save everytime
(setvar 'savetime 10)     <- sets autosave to 10 minutes
(setvar 'savefilepath (getvar "dwgprefix"))

HTH


Great ideas...

As long as you don't let those BAK's really start adding up...that can get pretty messy.

CADaver

  • Guest
autosave Q...
« Reply #11 on: August 04, 2004, 03:05:47 PM »
Quote from: M-dub
Quote from: ronjonp
Quote
So....how do I set it up to autosave every 10 minutes?


or you can put this in your acaddoc.lsp

(setvar 'isavebak 1)     <- makes sure a .bak file is created
(setvar 'isavepercent 0)     <- creates a full save everytime
(setvar 'savetime 10)     <- sets autosave to 10 minutes
(setvar 'savefilepath (getvar "dwgprefix"))

HTH


Great ideas...

As long as you don't let those BAK's really start adding up...that can get pretty messy.
Somebody here once posted something that would delete BAKs older than a certain time, anybody remember where or when?

ronjonp

  • Needs a day job
  • Posts: 7527
autosave Q...
« Reply #12 on: August 04, 2004, 03:22:35 PM »
So how do you get the *.bak files to save to a certain directory when using a qsave? Currently, it saves them to the same path as the drawing. I would like to isolate them to one directory rather that having them scattered all over the network.

Thanks,

Ron

Windows 11 x64 - AutoCAD /C3D 2023

Custom Build PC

t-bear

  • Guest
autosave Q...
« Reply #13 on: August 04, 2004, 04:04:57 PM »
If I use this, doesn't it overwrite the last *.bak?  There would be no more .baks than with doing a normal qsave....right?  One .bak per .dwg in a folder.....

Ahhhhh, Ron. Reverse problem, eh?  This is getting interesting.

M-dub

  • Guest
autosave Q...
« Reply #14 on: August 04, 2004, 04:10:42 PM »
I will look at it tomorrow, but I am pretty sure I saw somewhere a bak1, bak2, bak3, etc...
Look that up...