DWG2ImageX is an ActiveX control let you convert DWG/DXF/DWF file into GIF, JPEG, BMP, PNG directly, without need of AutoCAD.

Sample Code

Dim objImage
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

If Err.Number < 0 Then
    MsgBox Err.Description
End If


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.


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 2012 files;

Support Languages:

Any programming languages that supports COM, such as Visual C++, VB, Delphi, FoxPro, VBScript,JavaScript and etc.


The DWG to Image ActiveX Control is licensed as a DEVELOPER LICENSE and DISTRIBUTION LICENSE

Developer License permits one (1) developer to create one Derived Work using the Product. It does not include the right for access by concurrent users.

A derived work is a program that is designed for and is used by a single user.

Distribution License permits you to distribute the Derived Work to multiple users. Please contact us for more information.

At any type of license, your Derived Works should not compete with AutoDWG product directly.


Product Name License Type Price Purchase
DWG to Image ActiveX Control 1 Developer License $860 Buy Now
Distribution License contact us