Message 1 of 12

Not applicable
08-22-2018
10:36 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I've actually posted this question/topic on the regular AutoCAD LISP Forum, but ended up boiling it down to an issue with either my computer or using AutoCAD Architectural 2019 (I've recently started using ACA, but have been using ACAD for 8 years).
Both of the LISPs pasted below do the same thing and work for the other people on the forum I created, but they are not using AutoCAD Architectural 2019. I'm posting this here on this forum trying to figure out if it's an ACA issue or is an issue with my computer.
(defun c:CU ( / ppath newpath fname) (vl-load-com) (setvar "filedia" 0) (setq ppath (getvar "dwgprefix")) (setq newpath (vl-string-subst "\\PDF\\" "\\CAD\\" ppath)) (setq fname (strcat newpath (vl-filename-base (getvar "dwgname")) ".pdf")) (command "-export" "pdf" "current" "no" fname ) (setvar "filedia" 1) (princ) )
(defun c:CU ( / pdffile) (setvar "filedia" 0) (setq pdffile (strcat (vl-string-subst "\\PDF\\" "\\CAD\\" (getvar "dwgprefix")) (vl-filename-base (getvar "dwgname")) ".pdf" ) ) (command "-export" "_P" "_C" "_N" pdffile) (setvar "filedia" 1) (princ) )
Here is the previous forum I created.
Any help is greatly appreciated. Thank you!
Solved! Go to Solution.