Overview of the AutoCAD .NET API (.NET)

The AutoCAD .NET API enables you to manipulate the application and drawing files programmatically with the assemblies or libraries that are exposed. With these objects exposed, they can be accessed by many different programming languages and environments.

There are several advantages to implementing a .NET API for AutoCAD:

Objects are the main building blocks of the AutoCAD .NET API. Each exposed object represents a precise part of the program or a drawing, and they are grouped into different assemblies and namespaces. There are many different types of objects in the AutoCAD .NET API. For example:

Unmanaged to Managed Class Mappings

Most ObjectARX classes map to one managed wrapper class. Although there are exceptions, the first four letters of an ObjectARX class name frequently provide a clue to the corresponding managed namespace. The following table shows the most likely mapping of ObjectARX class prefixes to .NET namespaces.

ObjectARX class prefixes and .NET namespaces

 

Unmanaged Prefix

Managed Namespace

AcAp

Autodesk.AutoCAD.ApplicationServices

AcBr

Autodesk.AutoCAD.BoundaryRepresentation

AcCm

Autodesk.AutoCAD.Colors

AcDb

Autodesk.AutoCAD.DatabaseServices

AcGe

Autodesk.AutoCAD.Geometry

AcGi

Autodesk.AutoCAD.GraphicsInterface

AcLy

Autodesk.AutoCAD.LayerManager

AcPl

Autodesk.AutoCAD.PlottingServices

AcRx

Autodesk.AutoCAD.Runtime

AcUt

Autodesk.AutoCAD.DatabaseServices

Autodesk.AutoCAD.ApplicationServices

See “Mapping ObjectARX Classes to Managed Types” in the AutoCAD Managed Class Reference for a complete listing of direct class equivalences.