Thursday, May 10, 2007

DWG TrueView used as ActiveX Control

You can use Visual Studio to automate the free Autodesk DWG TrueView application.

Select Choose Items in the Toolbox and add the COM Component "C:\Program Files\DWG TrueView 2008\AcCtrl.dll".

Now it can be added to a form. Here is how the most simple code can look like with VB.NET to open and view a DWG file using TrueView.

Public Class Form1 Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load AxAcCtrl1.PutSourcePath("C:\Program Files\AutoCAD 2008\Sample\colorwh.dwg") End Sub End Class

Some of the latest blog posts

Subscribe to RSS headline updates from:
Powered by FeedBurner