DWGViewX

DWGViewX is a dwg viewer ActiveX control. 

Demo |Download DWGViewX Free trial | Licensing& Pricing


Features List

  1. Ability to loading  both http file and local file. for example:
       dwgViewX.DrawingFile = "http://www.autodwg.com/dwg-viewer/Office.dwg" or
       dwgViewX.DrawingFile = "c:\drawing files\Office.dwg"
  2. Supports both DWG, DXF and DWF file;
  3. Supports AutoCAD version from R2.5 to the latest version 2010.

Setup

1. You must run regsvr32 DWGViewX.dll to register the control first.

Help For Developers

DrawingFile

Property DrawingFile as String

Set drawing file name for the control, it supports http file and local file.

Example

   dwgViewX.DrawingFile = "http://www.autodwg.com/dwg-viewer/Office.dwg"  
   OR

   dwgViewX.DrawingFile = "c:\drawing files\Office.dwg"

ZoomIn

Sub ZoomIn()

Zoom In the window.

ZoomOut

Sub ZoomOut()

Zoom out the window.

ZoomAll

Sub ZoomAll()

Zoom all the window

ZoomWindow

Sub ZoomWindow(xLeft As Integer, yTop As Integer, xRight As Integer, yBottom As Integer)

Zoom window by specifying a rectangle area ( in pixel).

ZoomWindowByMouse

Sub ZoomWindowByMouse()

This method has no parameters, call the method, and click the mouse in the control to specify the area to zoom.

Pan

Sub Pan (xOffset As Integer, yOffset As Integer)

Pan the drawing by specify an offset.

PanByMouse

Sub PanByMouse()

This method has no parameters, call the method, and click the mouse in the control to pan the drawing.

ShowToolbar

Property ShowToolbar As Boolean

Show toolbar or hide toolbar

EnableContextMenu

Property EnableContextMenu As Boolean

Enable or disable context menu in the control.

FontPath

Property FontPath As String

Add font support path for the drawing file.

Support

if you want a new feature that isn't in the current version, please contact us: info@autodwg.com

 

 Demo | Download DWGViewX Free trial | Licensing& Pricing