CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products []
CZ | EN | DE
Login or
  Visitors: 7654

CAD tip CAD tip # 13977:

Question CAD 
 %  platform  category 
Q - question

How to publish a PDF to the same folder as a DWG drawing in AutoCAD?

A - answer By default, AutoCAD plots, prints or publishes PDFs to the current folder. However, it is often needed to place the output PDF file directly next to the drawing, i.e. into the same folder as the currently processed DWG file.

The undocumented variable PlotToFilePath is used for this setting. It is available since version 2019. Note that in AutoCAD 2024, you must first install the 2024.1.2 (or higher) update. In AutoCAD LT (2024+), it is only accessible via the LISP functions (getvar) and (setvar).

This variable is then used by our LISP application, reactor AutoPathPDF, available on the Download page. It automatically directs PDF output to the current DWG drawing folder. Simply download the application from Download and load it into your AutoCAD or AutoCAD LT (2024+) using APPLOAD. Drag it to the briefcase icon in this command to load it automatically in each AutoCAD session. Before each PLOT, PUBLISH, EXPORTPDF, or AUTOPUBLISH command, the output folder is automatically switched according to the DWG drawing. You can turn the function off or on by typing the AUTOPATHPDF command.

Another option is using the function of automatic publishing of PDFs - on any DWG save, or DWG close , or with a prompt at each of these actions. The resulting PDF can be stored into the DWG folder, or to the "PDF" subfolder under the drawing folder. You can find this setting in the dialog of the OPTIONS command, under the tab "Plot & Publish".

You can also use the freeware application AutoPDF to automatically publish a PDF to the drawing folder each time you save your DWG - see Tip 6515, this will simplify the publishing process even further.

100% *  CAD 
4.1.2024    28467×   FAQ  

See also:
Tip 13778:How to publish several DWG drawings into one multi-page PDF?
Tip 13635:How to speed up background publishing in AutoCAD?
Tip 13082:PDF published from AutoCAD shows blurred lines.
Tip 11953:How to save PDF/A-1a archive from CAD software AutoCAD, Inventor, Revit?
Tip 11821:How to publish PDF sheets (pages) under the plain layout name?

Back   All CAD Tips

Have we helped you? If you want to support the CAD Forum web service, consider buying one of our CAD applications, or our custom software development offerings, or donating via PayPal (see above). You may also add a link to your web - like this "fan" link: CAD Forum - tips, utilities, blocks for Autodesk products
CAD:    OS:    Categ: 
Text:  FAQ glossary   

Increase your productivity with our set of add-on functions for AutoCAD Civil 3D
CADstudio Civil Tools More info

Please use these tips at your own risk.
Arkance Systems is not responsible for possible problems that may occur as a result of using any of these tips.