Getting Started with Managed Wrappers
 
 
 

The basic steps to set up a .NET solution using Visual Studio and the ObjectARX managed wrappers are the same whether you use Microsoft Visual C# .NET or Visual Basic .NET.

To begin using the ObjectARX managed wrappers with Microsoft Visual Studio

  1. In Visual Studio .NET, create a class library solution and project.
  2. Select Add Reference from the Project menu or Solution Explorer.
  3. Browse to the \inc directory of the ObjectARX SDK and select acdbmgd.dll and acmgd.dll.
  4. In the main class file, add the namespaces you will use.

    For example, in C#:

using Autodesk.AutoCAD.ApplicationServices;
using Autodesk.AutoCAD.DatabaseServices;
using Autodesk.AutoCAD.Runtime;

In VB .NET:

Imports Autodesk.AutoCAD.ApplicationServices
Imports Autodesk.AutoCAD.DatabaseServices
Imports Autodesk.AutoCAD.Runtime

The ObjectARX SDK provides .NET samples in the \samples\dotNet directory.