Jump to content

Recommended Posts

Posted (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 by amir0914
Posted (edited)

Try unchecking this box in your PC3 file:

 

 

 

image.png

Edited by ronjonp
  • Like 1
Posted

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)

  • Like 1
Posted

If you want it plot range of layouts to pdf's and version 2 plot and join auto back into 1 pdf. Just ask.

 

image.png.f0205acc5f6f82b448e747b61e42c12e.png

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...