The AutoCAD .NET API is made up of different DLL files that contain a wide range of classes, structures, methods, and events that provide access to objects in a drawing file or the application. Each DLL file defines different namespaces which are used to organize the components of the libraries based on functionality.
The main DLL files of the AutoCAD .NET API that you will frequently use are:
Before classes, structures, methods, and events found in one of the AutoCAD .NET API related DLLs can be used, you must reference the DLL to a project. After a DLL is referenced to a project, you can utilize the namespaces and the components in the DLL file in your project.
Once a AutoCAD .NET API DLL is referenced, you must set the Copy Local property of the referenced DLL to False. The Copy Local property determines if Microsoft Visual Studio creates a copy of the referenced DLL file and places it in the same directory as the assembly file (or executable file) that is generated when building the project. Since the referenced files already ship with the product, creating copies of the referenced DLL files can cause unexpected results when you load your assembly file.
An assembly file is the source code from an Intermediate Language (IL) based program and is executed by invoking the .NET runtime; called the CLR, Common Language Runtime. The CLR compiles an assembly into native code right before it is executed by the operating system or another application. The process of compiling at runtime just before execution is often referred to as Just-In-Time (JIT) compiling. You can pre-compile an assembly using NGEN to create a native executable. Using NGEN can make your assembly more secure since it cannot be viewed using an IL disassembler.
The AutoCAD .NET API DLL files can be located at <drive>:\Program Files\Autodesk\<release> or as part of the latest ObjectARX SDK which can be downloaded from http://www.objectarx.com or the Autodesk Developer Network (ADN) website (https://www.autodesk.com/adn).
After the ObjectARX SDK is installed, the DLL files can be found in the inc folder under the main install folder.
To download and install the latest ObjectARX SDK
The install wizard is displayed.
The install wizard closes after it is finished if no problems were encountered.
To install the Managed .NET project wizard
To reference an AutoCAD .NET API DLL
Solution Explorer to display the Solution Explorer, if it is not already displayed.
Assemblies.