DWGViewX

DWGViewX is a dwg viewer ActiveX control

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 2013.

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


See Also
Convert PDF into DWG
Have you ever tried to open up PDF drawing and edit it in AutoCAD? AutoDWG PDFin does the trick. Details

Publish DWG(s) to PDF
AutoDWG Batch convert drawing files and save them as PDF files for easier distribution ?AutoCAD NOT requested. Details