Jump to content

Prevent auto run pdf after export layouts


RepCad

Recommended Posts

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
Link to comment
Share on other sites

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
Link to comment
Share on other sites

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...