how to make plot path to be the current dwg file location?
Hi.
when plotting,
bricscad point the save window to the PLOTOUTPUTPATH loction.
is there a way to set PLOTOUTPUTPATH to the current file location, even with lisp - to write a lisp for printing with the current file location - get the current file path and set it to PLOTOUTPUTPATH?
thanks,
aridzv.
Comments
-
I use custom lisps for plotting so it has the destination path and filename set correct.
(setq dwgname (getvar 'dwgname))
(setq dwgpath (getvar 'dwgprefix))
For pdfs we save in a directory under the dwg location \pdf.
(setq dwgpre (strcat (getvar "dwgprefix") "\pdf"))
(if (= (vl-file-directory-p dwgpre) nil)
(vl-mkdir dwgpre))
(setq dwgname (GETVAR "dwgname"))
(setq dwgname (substr dwgname 1 (- (strlen dwgname) 4)))(setq pdfname (strcat (getvar "dwgprefix") "pdf\" dwgname "-" (getvar "ctab")))
0