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 DVD to iPod Converter (Convert DVD Movie to iPod Video, Audio with DVD to iPod Converter)
- Emicsoft Audio Converter (Best Emicsoft Audio File Convert to convert to audio files with music converter)
- LeKuSoft DVD Ripper (rip bluray disks and common DVDs to all popular video and audio formats.)
- Emicsoft iPhone Manager for Mac (iPhone Manager Mac can convert iPhone mac and rip dvd to iPhone mac)
- Wondershare PPT2Video Pro (Convert Presentation to 130 Video Formats and share the Video Everywhere.)
- OJOsoft MP4 to MP3 Converter (Convert MP4 to MP3. It also allows you to convert MP4 to MP2.)
- ACAD DWG Viewer Pro (A lite and fast dwg viewer, browse, view, markup, compare, copy/paste and batch print DWG/DXF/DWF files. Supports 2009 CAD drawings. Supports CAD drawings to images and pdf conversion. Supports hyperl)
- Emicsoft iPhone Ringtone Maker for Mac (iPhone Ringtone Maker Mac can easily convert video/audio to ringtone.)
- IOrgSoft Video to Flash Converter (The Best Video to Flash Converter for Flash Fans.)
- DWGSee DWG Viewer 2008 (DWGSee, a lite and fast DWG Viewer,Free DWG Viewer, Free AutoCAD Viewer)

