Whats the reason not to set the variables as long as they are localised?
However try this (I don't know how to set it to a macro):
- (if (and PDFPS PLO PST)(progn (foreach LL (layoutlist) (setvar "ctab" LL) (command (setq DL (substr (getvar "dwgprefix") 1 (- (strlen (getvar "dwgprefix")) 13))) (setq DN (substr (getvar "dwgname") 1 (- (strlen (getvar "dwgname")) 4))) (strcat DL DN); (setq FS (strcat DL "52 PDFs" (chr 92) DN "-" (getvar "CTAB") ".pdf")) "plot" "yes" "" "AutoCAD PDF (General Documentation)" PDFPS "Inches" PLO "No" "Extents" "1:1" "Center" "Yes" PST "Yes" "No" "No" "No" FS "Yes" "Yes" "Yes" ) ) (alert "If all settings were selected, PDFs have been made of all layout sheets and saved in the PDFs folder for this project. They were saved as Project Name-Layout Name" ))(cond ((not PDFPS) (alert "\n"PDFPS" was nil!")) ((not PLO) (alert "\n"PLO" was nil!")) ((not PST) (alert "\n"PST" was nil!"))))
And BTW the images you've uploaded are not loading. |