Message 1 of 6
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I want to make a lisp that crates a new file, based on the current file i am working with.
I want to add "_FINAL" to the filename.
i have this at the moment, but i dont get the "_FINAL" added
(defun c:Finalcreate()
setq fPath (getvar 'dwgprefix)
setq fName (getvar 'dwgname)
(command "saveas" "2010" (strcat fPath fName "_FINAL"))
(command "qsave")
(princ)
)
Best would be if it automatic owerwrate the file, if it exists.
AND if the file, currently in use has "__" 2 x underscore , all after the "__" should be erased before adding _FINAL to the filename.
I am currently doing this manually, and it is taking SO much time 😞
Solved! Go to Solution.