• Home
  • Training Books
  • Subscribe to Our Email Newsletter
  • About
    • Contributors
    • Feedback
    • Contact
    • Privacy policy
    • Cookie Policy

CADnotes

CAD Tutorials and Best Practices for professionals and students

  • Featured
  • AutoCAD
    • AutoLISP
  • Revit
    • Revit Architecture Basic
    • Revit MEP Basic Tutorial
  • Inventor
  • MicroStation
    • MicroStation Basic Tutorial
You are here: Home / AutoCAD / How to: create DWF/PDF automatically when you save AutoCAD drawing

How to: create DWF/PDF automatically when you save AutoCAD drawing

January 8, 2013 by Edwin Prakoso 19 Comments

In this Article...

  • Auto Publish
  • Auto Publish options
  • Let the others see your drawings!

Plotter worker

© Alfonso de Tomás – Fotolia.com

Do you need to create DWF or PDF for your drawing to share it with your coworkers? Sometimes you have to do this because not everyone have access to AutoCAD. Of course, you can ask them to install DWG TrueView, free DWG viewer from Autodesk. But not everyone want to install it, especially if they don’t have a good hardware.

PDF probably is a better choice if you often share your drawing with non CAD users. Almost everybody today has PDF reader installed in their computer. And you can open DWFx by using Internet Explorer 7 or later (doesn’t work with other internet browser, only IE. Try this link to open a sample DWFx)

Auto Publish

AutoCAD offers automatic publish to DWF or PDF. You can choose it to create DWF/PDF automatically when you save your file. When you share your drawing on a shared location, you can be sure if the PDF is also updated. No need to worry that you forget to update it!

To enable Auto publish, open AutoCAD options. In ‘Plot and Publish’ tab, you can enable Automatic Publish on the bottom left of the dialog.

Auto_publish_option

Auto Publish options

If you click ‘Automatic Publish Settings…’ you can change some options, so it will suit your needs.

Auto_Publish_Settings

First, Publish On. You can choose to auto publish every time you save the drawing or when you close it. Or let AutoCAD to ask you first. Publish when close is more relevant. Because we often save drawings even we haven’t finished it yet. We don’t want people to see unfinished drawings, aren’t we?

You can set the save location, what to save (model and/or layouts) and file format.

Let the others see your drawings!

This is a nice option to have, if we work with many non CAD users. It’s tedious to update the PDF/DWF every time we make changes. And we often forget to do it, so people may see old drawings instead of the last version.

About Edwin Prakoso

I work as a Sr. Consultant in PT Cipta Satria Informatika. I've been using AutoCAD since R14 and Revit since Revit Building 9. I occasionally write for AUGIWorld magazine and I am also active in Autodesk discussion forum. I'm a member of Autodesk Expert Elite, an appreciation for individuals who give contributions to the Autodesk community.
Connect with me on twitter or LinkedIn.

Filed Under: AutoCAD Tagged With: autocad tips

0 0 votes
Article Rating
Subscribe
Login
Notify of
guest

guest

This site uses Akismet to reduce spam. Learn how your comment data is processed.

19 Comments
Inline Feedbacks
View all comments
Henry
Henry
3 years ago

That stopped working with Autocad 2023

0
Reply
John Warga
John Warga
4 years ago

when I click on the automatic publish settings dialog box, nothing happens and screen freezes

0
Reply
Henry
Henry
8 years ago

The only problem is, that Autocad 2018 doesn’t close after auto publish.

Hit X – Save? – Yes – Auto publish? Yes – No close.

0
Reply
Edwin Prakoso
Edwin Prakoso
Author
Reply to  Henry
8 years ago

I tried this feature on AutoCAD 2018, and it works just like expected. AutoCAD closed after auto publish.
Do you use the same settings as in the older version?

0
Reply
Henry
Henry
Reply to  Edwin Prakoso
8 years ago

Yes, exactly the same settings. I checked.

0
Reply
Edwin Prakoso
Edwin Prakoso
Author
Reply to  Henry
8 years ago

The only thing that I can suggest now is to check the background publishing option. Try to disable it and see if it fix the issue.

0
Reply
Henry
Henry
Reply to  Edwin Prakoso
8 years ago

That was disabled, I abled it and then disabled it.
Didn’t work.

0
Reply
Akhtar Rashid
Akhtar Rashid
10 years ago

Dear Edwin Prakoso,

I am a great fan of your useful tips and tricks posted on this website. I have a problem to be solved through your nice help.

I do not have a plotter installed on my computer. Usually I go to market for printing large sheets and get prints through model space. I want to prepare my layouts at home and get them printed from the market. How is possible without a plotter installed on the computer. If I select None printing deceive, will it still be printed in the same way, I mean the borders I have selected/set in my layout and the settings of the actual printing device will not affect it. Or is there another way to set the layout for an unknown printing device.

Thanks for helping me.

Regards,

Akhtar Rashid

0
Reply
Edwin Prakoso
Edwin Prakoso
Author
Reply to  Akhtar Rashid
10 years ago

Akhtar,
My suggestion is to plot it to pdf or dwf. Then you can bring the file and plot it. It will have all the predefined settings, and you can print it anywhere.

0
Reply
Birger Håland
Birger Håland
11 years ago

Is it possible to autopublish to both pdf AND dwf at the same time ?

0
Reply
Edwin Prakoso
Edwin Prakoso
Author
Reply to  Birger Håland
11 years ago

Not possible if you use AutoCAD out of the box. You need a LISP program to do that.

0
Reply
Birger Håland
Birger Håland
Reply to  Edwin Prakoso
11 years ago

Do you know of any lisp made that does that or do I have to learn it ? ;)

0
Reply
Edwin Prakoso
Edwin Prakoso
Author
Reply to  Birger Håland
11 years ago

Try to post a request in CADTutor Forum. The kind gentlemen and ladies over there will be happy to help :)

0
Reply
Fadi Antoon
Fadi Antoon
12 years ago

Thank you for a great post, I wasn't aware of this! One question though, is this a global setting or can it be altered to be "drawing specific".

Sincerely.

0
Reply
Edwin Prakoso
Edwin Prakoso
Reply to  Fadi Antoon
12 years ago

Thank you Fadi :)
The variable is saved in registry, so it's a global setting. It applies to all of your drawings.

0
Reply
RenderMan
RenderMan
Reply to  Fadi Antoon
12 years ago

While the AUTOMATICPUB System Variable is a global setting, one can easily change it as needed via one's AcadDoc.lsp file at drawing open.

For example, one can search the DWGPREFIX System Variable to check for if a given drawing is a Model, or a Sheet (presuming these are kept in different directories, or have specific file naming conventions), and employ the SETVAR function accordingly:

(setvar 'automaticpub 1) ;; on

(setvar 'automaticpub 0) ;; off

Now, to make this a complete automation, one *should* also incorporate a Visual LISP DocManager Reactor, specifically monitoring the :vlr-DocumentBecameCurrent Event, so that this setting is updated each time one switches to an open drawing (given that current versions are MDI environment and all). Lemon squeezy.

0
Reply
RenderMan
RenderMan
Reply to  RenderMan
12 years ago

Pseudo code (written quickly):

[code]

(vl-load-com)

(defun Automaticpub:Start ()
(or *Automaticpub_Reactor*
(setq *Automaticpub_Reactor*
(vlr-docmanager-reactor
"My automaticpub reactor"
'(
(:vlr-DocumentBecameCurrent
.
Automaticpub:DocumentBecameCurrent
)
)
)
)
)
(prompt "nAutomaticpub reactor loaded. ")
(princ)
)

(defun Automaticpub:DocumentBecameCurrent (rea doc)
(prompt "nAutomaticpub = ")
(princ
(setvar
'automaticpub
(cond
((wcmatch
(setq dwgPrefix (strcase (getvar 'dwgprefix)))
"*SHEET*"
)
1
)
(T 0)
)
)
)
)

(defun c:AutomaticpubOff ()
(if *Automaticpub_Reactor*
(progn
(vlr-remove *Automaticpub_Reactor*)
(setq *Automaticpub_Reactor* nil)
(prompt "n** Automaticpub reactor stopped ** ")
)
)
(princ)
)

(Automaticpub:Start)
(prompt "nInvoke "AUTOMATICPUBOFF" to end. ")
(princ)

[/code]

** Note – Just noticed that this posting system removes the text formatting.

0
Reply
Edwin Prakoso
Edwin Prakoso
Reply to  RenderMan
12 years ago

Thank you very much RenderMan… Great to see your comment here.

Nice code, I believe many can use it. It looks like many people like auto publish.

Yes, the posting system doesn't support bbcode like in forums. It's very unfortunate, but this is the best system I know to fight spam comments.

0
Reply
RenderMan
RenderMan
Reply to  Edwin Prakoso
12 years ago

No worries, Edwin; I am happy to help. :beer:

0
Reply
wpdiscuz   wpDiscuz

Featured

Complete our challenges to work better with AutoCAD!

Learning AutoCAD is not only about knowing all the features. You need to know to to work effectively with it, and they don’t teach it in school or training classes. You can learn with us here!

Recent Articles

  • Autodesk Construction Cloud Activity Log
  • Exporting AutoCAD Plant 3D Model to Navisworks
  • Autodesk Data Connector for Power BI is Now Available

Advertisement

New on CADnotes

  • Autodesk Construction Cloud Activity Log
  • Exporting AutoCAD Plant 3D Model to Navisworks
  • Autodesk Data Connector for Power BI is Now Available
  • Autodesk Forma Design Contest
  • Revit 2025: Toposolid Enhancements

Meet the Authors

avatar for
avatar for
avatar for
avatar for
avatar for
avatar for

Get Connected

CADnotes on FacebookCADnotes on InstagramCADnotes on TwitterCADnotes on YouTube

© 2009 – 2025 CADnotes · Feedback · Privacy Policy · Become an affiliate

wpDiscuz