The Hurricane Forum
The Hurricane Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Hurricane for AutoCAD
 Tips and Tricks
 AutoCAD 2004, new raster output commands
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Admin
Administrator



651 Posts

Posted - October 28 2003 :  7:46:13 PM  Show Profile  Visit Admin's Homepage  Reply with Quote
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

Hurricane for AutoCAD
http://www.74mph.com
FAQ at
http://www.74mph.com/faq/faq.html
Tutorials at
http://www.74mph.com/tutorials.html

Miksteele
Hurricane-Extreme User

USA
216 Posts

Posted - October 29 2003 :  09:02:30 AM  Show Profile  Visit Miksteele's Homepage  Reply with Quote
I would be interested to know what kind of resolution you can get in a 2004 TIF file. The drivers that came with 2000 are very limited. It seems that if you want a high-res TIF you need to buy a driver from a third party. Maybe that is not the case anymore?

Mike Fischer
Fischer Design Group, LLC
Building Model Coordination - Steel Detailing - Connection Design
www.FischerDesignGroup.com
Go to Top of Page

Admin
Administrator



651 Posts

Posted - October 29 2003 :  09:09:43 AM  Show Profile  Visit Admin's Homepage  Reply with Quote
From my experience, it seems that the Rasteroutput is totally set by the size of your AutoCAD window! (Basically it becomes a screenshot)

I've got my resolution set to 1600 x 1200, so the graphic comes out just under those values (because of the scrollbars and title/toolbars in AutoCAD).

I just tried a quick test and when I make my AutoCAD window smaller, the output becomes smaller too, and is limited to whatever is viewable in the AutoCAD window.

Crank up your monitor rez and you should get better results.

Bill


Hurricane for AutoCAD
http://www.74mph.com
FAQ at
http://www.74mph.com/faq/faq.html
Tutorials at
http://www.74mph.com/tutorials.html
Go to Top of Page

Miksteele
Hurricane-Extreme User

USA
216 Posts

Posted - October 29 2003 :  09:16:14 AM  Show Profile  Visit Miksteele's Homepage  Reply with Quote
Ohh I see...I guess I was referring to the plot to tif drivers. Totally different usage. I plan to upgrade in the near future.

Mike Fischer
Fischer Design Group, LLC
Building Model Coordination - Steel Detailing - Connection Design
www.FischerDesignGroup.com
Go to Top of Page

Admin
Administrator



651 Posts

Posted - April 08 2005 :  7:25:51 PM  Show Profile  Visit Admin's Homepage  Reply with Quote
Has anyone tried the above commands in AutoCAD 2005/2006? Any major differences in scripting them?

Regards,
Bill

Hurricane for AutoCAD
http://www.74mph.com
FAQ at
http://www.74mph.com/faq/faq.html
Tutorials at
http://www.74mph.com/tutorials.html
Go to Top of Page

n/a
deleted



4 Posts

Posted - May 15 2005 :  02:20:52 AM  Show Profile  Reply with Quote
hmmm... would this also work for DWF's? Recently,we've been playing with the DWFOUT / PUBLISH command. Apparently, the file size is alot smaller than a PLT or a PDF file so it's easier to email, transfer, burn on a CD etc.... Oh, and sorry, I haven't tried scripting these on 05/06 yet.....our office will be upgrading to 06 in a few weeks... I'll let you know.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Hurricane Forum © 2009 - 2021 Go To Top Of Page
This page was generated in 0.3 seconds. Snitz Forums 2000