CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products [www.cadforum.cz]
Cesky English Deutsch
Login/Register:
 Visitors: 3078 
Plex.Earth connects AutoCAD and Google Earth

CAD tip CAD tip # 10461:

Question CAD 
 %  platform  category 
Q - question

Unattended DWG plotting and PDF publishing without AutoCAD.

A - answer You don't necessarily need AutoCAD to plot DWG drawings. No, I don't talk about LT or even some AutoCAD clones (which do not fully understand the genuine DWG file format). You can use the free viewer Autodesk DWG TrueView to view, convert, and plot or publish your DWG files just like the full AutoCAD.

You can download the latest version of DWG TrueView from our Download section. The plot or PDF-/DWF-publish process can be invoked interactively, from the application ribbon. But you can also trick TrueView to run this process unattended, automatically from the Windows (DOS) command line, or even from Windows batch scripts.

Just use the following syntax to run your version of DWG TrueView (dwgviewr.exe) - it opens the specified drawing, runs the specified commands (from script) and starts the application faster (nologo):

"C:\Program Files\Autodesk\DWG TrueView 2015 - English\dwgviewr.exe" "c:\drawings\ sample.dwg" /b "c:\scripts\plotPDF.scr" /nologo

Beside your DWG file you will need a pre-prepared .SCR (script) text file which invokes the PLOT command and answers its prompts. E.g. for PDF plotting you would use something like this (save from Notepad as plotPDF.scr):

;Sample plot script
_PLOT
_Y
Model
DWG To PDF.pc3
ISO A4 (297.00 x 210.00 MM)
_Millimeters
_Landscape
_No
_Display
_Fit
0,0
_No
.
_Yes
_As

_Y
_Y
_QUIT _Yes

Watch the standard AutoCAD -PLOT command for the individual prompts and adjust for your device, sizes and plot styles.

You can also use the above mentioned commandline runstring to preset the default DWG "Print" behaviour (Windows rt-click context menus) through the Registry. E.g. set the "Default" key value for:

HKEY_CLASSES_ROOT\DWGTrueView.Drawing.20\shell\print\command

DWG
100% *  CAD 
19.8.2015    15263×   FAQ  
Prices - CAD eShop:
applies to: DWG ·

See also:
Tip 12325:How to display a DWG from Advance Steel including AS objects? (AST viewer)
Tip 12103:Random lines are displayed over my AutoCAD drawing.
Tip 12049:AutoCAD display (status bar) jumps and flickers while zooming.
Tip 11623:Measuring suddenly doesn't work in AutoCAD or DWG TrueView.
Tip 10182:How to create a PDF file from DWG without AutoCAD?


Back   All CAD Tips All CAD tips&tricks



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   



Featuring:
DwgTextTranslator translates a series of drawings from one language to another using MS Access.
Download a fully functional trial version.


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