Overview of the ObjectARX Managed Wrapper Classes
 
 
 

Managed wrapper classes are provided for most of the ObjectARX SDK, enabling you to write applications in any language that is supported by the Microsoft .NET Framework. The managed classes implement database functionality and enable you to write applications that read and write drawing format (DWG) files. They also provide access to AutoCAD UI elements, including the command line and feature dialog boxes, the AutoCAD editor, and the Publishing and Plotting components.

See the AutoCAD Managed Class Reference for a complete list of the managed wrapper classes that are available.

The ObjectARX managed wrappers are contained within three assemblies, all of which ship with AutoCAD:

Primitive data types of the C++ language and ObjectARX are mapped to the corresponding .NET equivalent. For example, the C++ Bool is a System::Boolean in .NET and the Adesk::Boolean is a System::Bool in .NET.

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.