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
- Aiseesoft DVD to AVI Converter (Aiseesoft DVD to AVI Converter, Convert DVD to AVI , Converter DVD to Divx)
- OJOsoft PSP Video Converter (Convert video and audio files into MP4, MP3 and M4A playable on Sony PSP)
- OJOsoft DVD to iPhone Converter (Convert DVD into MP4, MP3, M4A formats supported by iPhone extremely easy.)
- DWGViewX (DWGViewX is a dwg viewer ActiveX control.)
- Xilisoft MOV to MP4 Converter (Convert MOV/QT to MP4 video file in batches for playback on MP4 players)
- Aiseesoft iRiver Video Converter (convert any video to WMV, AVI, MP4 and MP3, OGG audio)
- IMacsoft DVD Ripper Suite for Mac (iMacsoft DVD Ripper Suite for Mac is powerful and easy to use DVD ripper and video conversion for Mac OS X (including Mac OS X 10.6 Snow Leopard, Mac Intel and Mac PowerPC) users.)
- Aiseesoft DVD to iPod Suite (Convert DVD to iPod and any video/audio to MP4/H.264)
- RZ Video Converter (Best Video Converters for iPod, iPhone, PSP, Zune, etc. Convert any video audio)
- IMacsoft Mac DVD Toolkit (iMacsoft Mac DVD Toolkit delivers all the essential tools for DVD fans.)

