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
- ImTOO AVCHD Converter (AVCHD converter to convert MTS, M2TS, MOD videos to common videos)
- Xilisoft iPod Rip (iPod rip and copy software which perfectly connects iPod, iPhone, PC.)
- Xilisoft YouTube Video Converter (Download and convert YouTube videos for playback on various multimedia devices.)
- OJOsoft Media Converter Suite (Rip DVD, convert video and audio file between all supported formats)
- Aiseesoft DVD to WMV Converter (Aiseesoft DVD to WMV Converter – Convert DVD to WMV Converter, Rip DVD to WMV)
- IOrgSoft Zune Video Converter (iOrgSoft Zune Video Converter is the best Zune MPEG-4 converter, MP3 converter.)
- OJOsoft DVD MP4 Converter Suite (Convert DVD and other video files to MP4 format with high quality and fast speed)
- Aiseesoft 3GP Video Converter (Aiseesoft 3GP Video Converter is the best professional 3GP Converter software)
- Aiseesoft Creative Zen Video Converter (a wide variety of video editing functions)
- IOrgSoft AVI MPEG Converter (iOrgSoft AVI MPEG Converterconvert almost any type of video files to AVI, MPEG.)

