![]() ![]() Where I work we have an extended folder structure like //serverpath/projectname/area/dwgtype/ where dwgtype can be E for electrical drawings, LD for loops etc. The point is the point in front of qsave if you get the point.Īnother option would be to save the drawings in the same folder but append _R13 to the filename-base. I use c:qs, assigned a separate button to it so the standard AutoCAD qsave button / command still works and even if something goes wrong .qsave still uses the built in function. ![]() (setq pth "D:\Users\Eric\Advanced Architectural Stone\Backup" Second save location I have even tried using the DOS naming convention which didn't work either. Is there a special way to handle file paths in LISP so that they work? If I just use the root directory it works perfect, but as soon as I add any subfolders, there is no output. Sorry to dust off this old post, but I have come to the same need and was lucky enough to find this! Unfortunately, I seem to be running into an issue of the LISP completing to the directory I provided. (vl-file-copy (strcat (getvar 'dwgprefix) (getvar 'dwgname)) dwg) (= "No" (getkword "\nFile already exists in second location, overwrite? : ")) (setq pth "C:" Second save locationĭwg (strcat (vl-string-right-trim "\\" (vl-string-translate "/" "\\" pth)) "\\" (getvar 'dwgname)) Here is an example, change the highlighted path to suit: I recommend saving the active drawing, and then copying the saved file to the other location using the vl-file-copy function. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |