Author Topic: Publish Using DWG to PDF.pc3 AND Suppress Filename Prompt  (Read 3349 times)

0 Members and 1 Guest are viewing this topic.

M-dub

  • SuperMod
  • Seagull
  • Posts: 23958
  • I'm never sarcastic...
Publish Using DWG to PDF.pc3 AND Suppress Filename Prompt
« on: November 04, 2010, 09: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?
Mike Williams | AutoCAD and Raster Design 2012 | Synergis Adept | Windows 7

M-dub

  • SuperMod
  • Seagull
  • Posts: 23958
  • I'm never sarcastic...
Re: Publish Using DWG to PDF.pc3 AND Suppress Filename Prompt
« Reply #1 on: November 04, 2010, 10: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.
Mike Williams | AutoCAD and Raster Design 2012 | Synergis Adept | Windows 7

mary

  • Guest
Re: Publish Using DWG to PDF.pc3 AND Suppress Filename Prompt
« Reply #2 on: April 21, 2011, 08: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/

MP

  • Seagull
  • Posts: 15835
  • Don't be so open-minded that your brains fall out.
Re: Publish Using DWG to PDF.pc3 AND Suppress Filename Prompt
« Reply #3 on: April 21, 2011, 09: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?
\|// Set goal. Experiment tirelessly until
|oo| practice has become expertise.  Loop.
|- | Dropbox | O'Reilly School | UltraEdit

huiz

  • Bull Frog
  • Posts: 480
  • Certified Prof C3D
Re: Publish Using DWG to PDF.pc3 AND Suppress Filename Prompt
« Reply #4 on: April 22, 2011, 02: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.
The conclusion is justified that the initialization of the development of critical subsystem optimizes the probability of success to the development of the technical behavior over a given period.

Kerry

  • Mesozoic Relic
  • Needs a day job
  • Posts: 9676
  • class keyThumper<T>:ILazy<T>
Re: Publish Using DWG to PDF.pc3 AND Suppress Filename Prompt
« Reply #5 on: April 22, 2011, 02: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 :)
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline : absolutely none at all.

--> Donate to TheSwamp <--

Kerry

  • Mesozoic Relic
  • Needs a day job
  • Posts: 9676
  • class keyThumper<T>:ILazy<T>
Re: Publish Using DWG to PDF.pc3 AND Suppress Filename Prompt
« Reply #6 on: April 22, 2011, 03: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)
  )
)
;;;---------------------------------------------------------------------------
« Last Edit: April 22, 2011, 03:10:45 am by Kerry »
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline : absolutely none at all.

--> Donate to TheSwamp <--

Jeff H

  • King Gator
  • Posts: 4079
Re: Publish Using DWG to PDF.pc3 AND Suppress Filename Prompt
« Reply #7 on: April 22, 2011, 04:22:17 am »
Would Automatic Publish and set for Save work?
« Last Edit: April 22, 2011, 05:46:19 am by Jeff H »

huiz

  • Bull Frog
  • Posts: 480
  • Certified Prof C3D
Re: Publish Using DWG to PDF.pc3 AND Suppress Filename Prompt
« Reply #8 on: April 22, 2011, 06: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.
The conclusion is justified that the initialization of the development of critical subsystem optimizes the probability of success to the development of the technical behavior over a given period.

Krushert

  • Needs a day job
  • Posts: 9949
Re: Publish Using DWG to PDF.pc3 AND Suppress Filename Prompt
« Reply #9 on: April 22, 2011, 07: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:
=   =   =  Just another Inquisitive REVIT Idiot running around with Scissors =   =   =   =  

Remember folks, these articles are supposed to be fun. Don’t do anything stupid.

=   =   =  ACA 2011 and Revit Arch 2012 on 64bit on Win7P  =   =   =   =

rkmcswain

  • Bull Frog
  • Posts: 485
Re: Publish Using DWG to PDF.pc3 AND Suppress Filename Prompt
« Reply #10 on: April 22, 2011, 07:59:08 am »
...and if you use Sheet Set Manager, you can print to any output format including PDF without any prompts.