TheSwamp

CAD Forums => CAD General => Topic started by: M-dub on November 04, 2010, 10:48:04 AM

Title: Publish Using DWG to PDF.pc3 AND Suppress Filename Prompt
Post by: M-dub on November 04, 2010, 10:48:04 AM
I didn't think this was as difficult as it's proving to be.  Maybe I was using a different pdf printer.

How do I do it with DWG to PDF?  Anyone know?
Title: Re: Publish Using DWG to PDF.pc3 AND Suppress Filename Prompt
Post by: M-dub on November 04, 2010, 11:14:37 AM
Found it.   :loco:

In the Publish window, hit Publish Options... button and the first option (Default output location (DWG and plot-to-file)) is the one.
Title: Re: Publish Using DWG to PDF.pc3 AND Suppress Filename Prompt
Post by: mary on April 21, 2011, 09:26:14 PM
Just saw your post and would like to share with you, that I am running AutoDWG which converts my drawings into PDF file format with easy steps, no more struggle with AutoCAD, I downloaded it from here: http://www.autodwg.com/PDF/
Title: Re: Publish Using DWG to PDF.pc3 AND Suppress Filename Prompt
Post by: MP on April 21, 2011, 10:24:21 PM
Just saw your post and would like to share with you, that I am running AutoDWG which converts my drawings into PDF file format with easy steps, no more struggle with AutoCAD, I downloaded it from here: http://www.autodwg.com/PDF/

Does it perform hidden line removal / hidden line substitution, and if so, with the same degree of fidelity?
Title: Re: Publish Using DWG to PDF.pc3 AND Suppress Filename Prompt
Post by: huiz on April 22, 2011, 03:00:42 AM
I thought there is also an option in AutoCAD to automatically save a pdf and/or dwf everytime you save the dwg.
Title: Re: Publish Using DWG to PDF.pc3 AND Suppress Filename Prompt
Post by: Kerry on April 22, 2011, 03:47:01 AM
I thought there is also an option in AutoCAD to automatically save a pdf and/or dwf everytime you save the dwg.

Not that I know of
... and I'd have it disabled if there was :)
Title: Re: Publish Using DWG to PDF.pc3 AND Suppress Filename Prompt
Post by: Kerry on April 22, 2011, 04:05:02 AM
Mike,
attached is what I do :

This is intended to run from a toolbar button per drawing, not through publisher :)

Note that I haven't modified the code, so you may want to.

I extract the revision number from the border and append it to the base file name.
The PlotConfigurations are deleted and replaced from a template drawing ...  not critical

A folder is made under the Drawing Folder
The PDF is created there.
Code: [Select]
;;;---------------------------------------------------------------------------
;;; CodeHimBelonga kdub@theSwamp
;;;
;;; (c:DWGToPDF_A1)
(defun C:DWGToPDF_A1 (/ old-expert rev_value PDFPath dwgname PDFName)
  (DeleteAllPlotConfigurations)
  (setq old-expert (getvar "EXPERT"))
  (setvar "EXPERT" 5)
;; (or (kdub:stringprintable-p (setq rev_value (_getBorderRevision)))
;;      (setq rev_value "--")
;;  )
;; Workaround for forum posting
  (setq rev_value "--")

  (setq PDFPath (strcat (getvar "DWGPREFIX") "PDF\\")
        dwgname (vl-filename-base (getvar "DWGNAME"))
        PDFName (strcat PDFPath dwgname "[REV " rev_value "].PDF")
  )
  (vl-mkdir PDFPath)
  (if (and (vl-cmdf "-psetupin"
                    "C:/kdub_SteelTools/BLOCKS/_PLOT_Template_2011.DWG"
                    "*"
           )
           (vl-cmdf "-plot"       "no"          "Model"       "DWGToPDF_A1"
                    "DWG To PDF.pc3"            PDFName       "No"
                    "yes"
                   )
      )
    (princ (strcat "PDF File Created: " PDFName))
    (princ "Failed to create PDF File ")
  )
  (setvar "EXPERT" old-expert)
  (princ)
)
;;;---------------------------------------------------------------------------

Code: [Select]
;;;---------------------------------------------------------------------------
;;;
(defun DeleteAllPlotConfigurations ()
  (vl-load-com)
  (vlax-for ps (vla-get-plotconfigurations
                 (vla-get-activedocument (vlax-get-acad-object))
               )
    (vla-delete ps)
  )
)
;;;---------------------------------------------------------------------------
Title: Re: Publish Using DWG to PDF.pc3 AND Suppress Filename Prompt
Post by: Jeff H on April 22, 2011, 05:22:17 AM
Would Automatic Publish and set for Save work?
Title: Re: Publish Using DWG to PDF.pc3 AND Suppress Filename Prompt
Post by: huiz on April 22, 2011, 07:13:43 AM
I thought there is also an option in AutoCAD to automatically save a pdf and/or dwf everytime you save the dwg.
Not that I know of
... and I'd have it disabled if there was :)

Would Automatic Publish and set for Save work?


That 's what I was talking about. Automatic publish will save a PDF each time you save the drawing.

I have disabled it but I can imagine other people like the option.
Title: Re: Publish Using DWG to PDF.pc3 AND Suppress Filename Prompt
Post by: Krushert on April 22, 2011, 08:34:02 AM
I thought there is also an option in AutoCAD to automatically save a pdf and/or dwf everytime you save the dwg.
Not that I know of
... and I'd have it disabled if there was :)

Would Automatic Publish and set for Save work?


That 's what I was talking about. Automatic publish will save a PDF each time you save the drawing.

I have disabled it but I can imagine other people like the option.


Thanks for letting me know about that one.  And Yes I have disabled it for my users.   :evil:
Title: Re: Publish Using DWG to PDF.pc3 AND Suppress Filename Prompt
Post by: rkmcswain on April 22, 2011, 08:59:08 AM
...and if you use Sheet Set Manager, you can print to any output format including PDF without any prompts.
Title: Re: Publish Using DWG to PDF.pc3 AND Suppress Filename Prompt
Post by: Johnvictor on December 19, 2013, 08:40:49 AM
I would like to suggest you goggling DWG to PDF online converter so you'll get lot of sites and check the ratings of the sites. According to ratings use one good quality sites, where you'll get the format of DWG to PDF.