You pretty much had it, nice one:
Code:(vl-load-COM) (vla-SaveAs (vla-get-ActiveDocument (vlax-get-acad-object)) (strcat (getvar "DWGPREFIX") "plot_" (getvar "DWGNAME")) ac2000_dwg)
Registered forum members do not see this ad.
Thanks in Advance I am New to this forum
I need to save a file with the same name but add something like Plot_ at the beginning of the name also saved in an older version
Problem: To view certain elements in AutoCad 2010 that were creaed in Civil3d 2010, I had to save the file in an older version of Autocad. I saved it as AutoCad 2000 it seemed to work.
So if the design Engineer can save thier drawing and also at the same time save a copy with the same name but have Plot in front of the DWGNAME
This below works but saved file is Hard Coded in it.
(vl-load-COM)
(vla-SaveAs (vla-get-ActiveDocument(vlax-get-acad-object)) "test1.dwg" ac2000_dwg)
Correct me if I am wrong. DONT ANYONE LAUGH (Outloud that is
I need to get the DWGNAME
Maybe through getvar
(setq name (getvar "DWGNAME"))
(setq plot "plot_")
strcat these together some how
and place in this code
(vl-load-COM)
(vla-SaveAs (vla-get-ActiveDocument(vlax-get-acad-object)) "test1.dwg" ac2000_dwg)
Does anyone have a complete answer?
Thanks Again
A Newb to Lisp
You pretty much had it, nice one:
Code:(vl-load-COM) (vla-SaveAs (vla-get-ActiveDocument (vlax-get-acad-object)) (strcat (getvar "DWGPREFIX") "plot_" (getvar "DWGNAME")) ac2000_dwg)
Lee Mac Programming
With Mathematics there is the possibility of perfect rigour, so why settle for less?
Just another Swamper
That is Perfect.
Thank You so much
Registered forum members do not see this ad.
Lee Mac Programming
With Mathematics there is the possibility of perfect rigour, so why settle for less?
Just another Swamper
Bookmarks