- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Im having trouble finishing this lisp. It works perfectly but I have to manually delete the project name from the PDFs name for each PDF I create. Below is the lisp, can someone solve this problem for me. I know it has to do with the input colored red which at the moment is blank.
; dpdf.lsp will create pdf from dwg using parameters specified in code
(defun c:dpdf (/ file)
(setvar "cmdecho" 1)
(setq file (strcat (getvar 'DWGPREFIX) (substr (setq dwg (getvar 'DWGNAME)) 1 (- (strlen dwg) 4)) ".pdf"))
(if (findfile file)(vl-file-delete file))
(command "-plot" "yes" "" "DWG TO PDF.PC3" "ARCH D (24.00 x 36.00 Inches)" "Inches" "Landscape" "yes" "window" "0,0" "36,24" "1:1" "0,0" "yes" "SCD SHADER.stb" "yes" "no" "yes" "no" "" "No" "yes")
)
Solved! Go to Solution.