RepCad Posted August 30, 2019 Posted August 30, 2019 (edited) Hi all, I wrote the below code to export layouts to pdf and it works very well but every pdf runs automatically after export it. it means if my drawing has 30 layouts, 30 pdf will be run automatically. is there a way to prevent run and display all pdf after export them?? (defun c:pdx () (foreach Layout (layoutlist) (command "_.-PLOT" "No" Layout "" "DWG To PDF.pc3" (strcat (getvar "DWGPREFIX") Layout ".pdf") "No" "Yes" ) ) ) Edited August 30, 2019 by amir0914 Quote
ronjonp Posted August 30, 2019 Posted August 30, 2019 (edited) Try unchecking this box in your PC3 file: Edited August 30, 2019 by ronjonp 1 Quote
Steven P Posted August 30, 2019 Posted August 30, 2019 I did as RonJon suggests a while back, and savd the PC3 file as something like "DWGtoPDF_NoPreview' - somethng like that - so when I run my PDF routine it uses that plotter configration but if I want to I can also plot to PDF using the standard and get the preview as required (and if you want to tak this further, my PDF routine has a pop up box where I can click 'show preview' and it selects whicever PC3 file as required) 1 Quote
BIGAL Posted September 3, 2019 Posted September 3, 2019 If you want it plot range of layouts to pdf's and version 2 plot and join auto back into 1 pdf. Just ask. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.