Hello!
Just a reminder that in AutoCAD 2004, AutoDesk has included a few new commands that are easily scriptable. The JPGOUT, PNGOUT, WMFOUT and TIFOUT commands, output the currently displayed drawing (DWG) to the corresponding raster format.
(The file formats are useful for webpages or transferring your drawings as "non-editable" )
(I've added the old BMPOUT command to the end of the list just for kicks, of course, you can add/change things around for your own use!)
It looks like AutoDesk have disabled the "Output File Exists, are you sure you want to overwrite?" question, so there are no worries in case the files generated already exist. AutoCAD will overwrite them by default. The scripts can remain the same whether you have existing JPG's in the directory or not.
;;; SCRIPT TO OUTPUT .JPG FILES
;START
JPGOUT
"$FILEPATH$$FILENAME$.JPG"
;END
;;; SCRIPT TO OUTPUT .TIF FILES
;START
TIFOUT
"$FILEPATH$$FILENAME$.TIF"
;END
;;; SCRIPT TO OUTPUT .PNG FILES
;START
PNGOUT
"$FILEPATH$$FILENAME$.PNG"
;END
;SAVE THE DRAWING TO BMP
_ZOOM E
_QSAVE
_BMPOUT
ALL
;END
;;; SCRIPT TO OUTPUT .WMF FILES
ZOOM
E
WMFOUT
"$FILEPATH$$FILENAME$.WMF"
ALL
;END SCRIPT