Community
AutoCAD Forum
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

MOVEBAK to relative path

4 REPLIES 4
Reply
Message 1 of 5
kibitotato
367 Views, 4 Replies

MOVEBAK to relative path

kibitotato
Advocate
Advocate

¿Is it possible to use MOVEBAK to a relative path?

 

Use .\folderdestination 

 

Instead of C:\folder1\folderdestination

 

 

0 Likes

MOVEBAK to relative path

¿Is it possible to use MOVEBAK to a relative path?

 

Use .\folderdestination 

 

Instead of C:\folder1\folderdestination

 

 

Tags (1)
4 REPLIES 4
Message 2 of 5
pendean
in reply to: kibitotato

pendean
Community Legend
Community Legend
Nope.
0 Likes

Nope.
Message 3 of 5
rkmcswain
in reply to: kibitotato

rkmcswain
Mentor
Mentor

You can technically set a relative path, but MOVEBAK won't honor it.

 

https://blog.jtbworld.com/2007/07/movebak-for-autocad.html

R.K. McSwain     | CADpanacea | on twitter
0 Likes

You can technically set a relative path, but MOVEBAK won't honor it.

 

https://blog.jtbworld.com/2007/07/movebak-for-autocad.html

R.K. McSwain     | CADpanacea | on twitter
Message 4 of 5
kibitotato
in reply to: rkmcswain

kibitotato
Advocate
Advocate
How? I read the post, try to type (setenv "AcetMovebak" ".\folderdestination") but deosn´t work...
0 Likes

How? I read the post, try to type (setenv "AcetMovebak" ".\folderdestination") but deosn´t work...
Message 5 of 5
paullimapa
in reply to: kibitotato

paullimapa
Mentor
Mentor

Since it doesn't accept relative path, as an alternative you can have AutoCAD always run the following code every time you open a dwg:

(if(not(vl-file-directory-p (setq fld(strcat(getvar"dwgprefix")"Backup"))))(vl-mkdir fld))(setenv "AcetMovebak" fld)

Then the backups will be saved under the Backup folder relative to the current folder location of the opened drawing.

You'll also need to redefine the SAVEAS command so that this is invoked after saving the drawing to a new folder location.


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
0 Likes

Since it doesn't accept relative path, as an alternative you can have AutoCAD always run the following code every time you open a dwg:

(if(not(vl-file-directory-p (setq fld(strcat(getvar"dwgprefix")"Backup"))))(vl-mkdir fld))(setenv "AcetMovebak" fld)

Then the backups will be saved under the Backup folder relative to the current folder location of the opened drawing.

You'll also need to redefine the SAVEAS command so that this is invoked after saving the drawing to a new folder location.


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

AutoCAD Inside the Factory


Autodesk Design & Make Report