Hi Is there any way to export all layers separately into pdf format?
i want to export all of them at once to edit them in illustrator. It's taking alot of time to export them one by one from autocad
I don't have any professional Experience with programming but i have tried to made this .lisp with chatGPT but it's not working to export files which property in codes needs improvements please
(defun c:ExportLayersToPDF (\Users\Useer\Desktop\pdf layers)
(setq dwgname "EMERALD HILLS MP (2007) 25 01 2023") ;
(setq dwgpath "F:\Shahtaj Ahmed Bhutto\AUTOCAD") ;
(setq layname "")
(while
(setq layname (tblnext "LAYER" layname))
(and layname
(/= layname "0")
(/= layname "DEFPOINTS")
(/= (logand (cdr (assoc 70 (tblsearch "LAYER" layname))) 1) 1)
(progn
(setq pdfname (strcat dwgname "_" layname ".PDF"))
(setq pdffullpath (strcat dwgpath pdfname))
(command "-plot" "Yes" "Model" "" "" "DWG To PDF.pc3" "A0" "PORTRAIT" "Inches" "Fit" "Center" "No" "No" "No" "Yes" "No" "No" "Yes" "Yes" pdffullpath)
T
)
)
)
(princ)
)