This repository has been archived on 2024-10-18. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
revitDwgExportCleaner-scrip…/2 - scripts/ACAD_TRUSTED/saveasPlus.lsp
2018-11-26 21:57:59 +01:00

18 lines
443 B
Common Lisp

(defun C:saveasplus (/ x s currPath currName savePath)
(initget 1 "Prefix Suffix")
(setq x (getkword "Prefix or suffix? [Prefix/Suffix]"))
(setq s (getstring (strcat x "?")))
(setq currPath (getvar "dwgprefix"))
(setq currName (cadr(fnsplitl (getvar "DWGname"))))
(if (= x "Prefix")
(setq savePath (strcat currPath s currName ".dwg"))
(setq savePath (strcat currPath currName s ".dwg"))
)
(command "_.saveas" "2013" savePath)
)