DWG2ImageX 2.0
Introduction:
DWG2ImageX is an ActiveX control let you convert DWG/DXF file into GIF, JPEG, BMP, PNG directly, without need of AutoCAD.Support AutoCAD2005 foramt.
Sample Code:
DimobjImage
On Error Resume Next
Set objImage=
CreateObject("DWG2ImageX.Converter")
objImage.Width =
1024
objImage.Height = 768
objImage.ImageFormat = 2 '1--jpeg, 2--gif
objImage.InputFile = "c:\My
Drawings\8th floor furniture.dwg"
MsgBox objImage.Version 'Get the drawing file version.
MsgBox "Total "&
objImage.ViewCount &" Views"
For I=1 to objImage.ViewCount
strViewName =
objImage.ViewName(I)
MsgBox "Converting view: "& strViewName&
"..."
nWidth = objImage.ViewWidth(I)
nHeight=
objImage.ViewHeight(I)
MsgBox "Width="&nWidth&"
Height="&nHeight
strOutput = "c:\Output\"&strViewName
objImage.Convert strOutput, strViewName
Next
If
Err.Number < 0 Then
MsgBox
Err.Description
End
If
Properties
| InputFile | Specify the file to be converted. |
| Width | Set output image width in pixels. |
| Height | Set output image height in pixels. |
| Background | Set background of output image. |
| ImageFormat | Set output image format. |
| ZoomType | Set zoom type. |
| | |
| ViewCount | Get the views count in the drawing file. |
| ViewName | Get the view name by index. |
| ViewWidth | Get the view width by index. |
| ViewHeight | Get the view height by index. |
| Version | Get version of the file. |
Methods
| Convert | Convert the drawing file to a Image file. |
| AddFontPath | Add AutoCAD font support path. |
Version Support:
From AutoCAD R9 files to current version AutoCAD 2010 files;
Support Languages:
Any programming languages that supports COM, such as Visual C++, VB, Delphi,
FoxPro, VBScript, JavaScript and etc.
Screenshot:
Tags:activex control, converter, dwg, dxf, dwf
- IOrgSoft FLV Converter (iOrgSoft FLV Converter convert popular video files to to FLV (Flash Video).)
- Tipard iPod Converter Suite (Rip DVD to iPod video and convert multi-format video to iPod video format.)
- Tipard iPod Video Converter (It can convert nearly all the videos to iPod, iPhone from HD TS, etc.)
- Video Editor for Mac (Video Editor for Mac, the Trendy Art of Movie Editing, edit video on Mac OS X.)
- Emicsoft iPhone Converter for Mac (Emicsoft iPhone Converter for Mac-best Mac iPhone (3G) Converter OS X)
- Xilisoft iPad Magic (Backup files among iPad, PC, iTunes; convert videos/audios/DVD/CD/ISO/IFO folder)
- IOrgSoft DVD to Zune Converter (Convert DVD to Zune mpeg-4, h.264, wmv movie with DVD to Zune Converter)
- Xilisoft AVCHD Converter (AVCHD converter to convert MTS, M2TS, MOD videos to common videos)
- DWGViewX (DWGViewX is a dwg viewer ActiveX control.)
- Xilisoft OGG MP3 Converter (It can easily rip DVD to all popular video and audio formats with fast speed.)

