AutoCAD .NET Developers Guide
Author:Stephen Preton Autodesk Developer Technical Services Team (DevTech)
Contents1 Introduction..................................................................................................................22
Topics in this section..............................................................................................................22Guide Organization.......................................................................................................................22Overview of the AutoCAD .NET API..............................................................................................22Components of the AutoCAD .NET API.........................................................................................23Overview of Microsoft Visual Studio..............................................................................................25Topics in this section..............................................................................................................25Which Edition of Microsoft Visual Studio to Use.........................................................................25Use COM Interoperability with .NET..........................................................................................26Dependencies and Restrictions.................................................................................................27For More Information.....................................................................................................................27Sample Code................................................................................................................................27Transition from ActiveX Automation to .NET.................................................................................28
2 Getting Started with Microsoft Visual Studio............................................................28
Topics in this section..............................................................................................................28Understand Microsoft Visual Studio Projects.................................................................................29Define the Components in a Project..............................................................................................29Class Modules....................................................................................................................30Forms.................................................................................................................................30References.........................................................................................................................30View Project Information...............................................................................................................30Work with Microsoft Visual Studio Projects....................................................................................31Procedures.........................................................................................................................31Topics in this section..............................................................................................................32Create a New Project.................................................................................................................32Procedures.........................................................................................................................32Open an Existing Project or Solution..........................................................................................35Procedures.........................................................................................................................35Save a Project or Solution.........................................................................................................36Procedures.........................................................................................................................36Work with Multiple Projects in a Solution...................................................................................37 Add a project to a solution..................................................................................................37Unload a project from a solution.........................................................................................37Procedures.........................................................................................................................37Edit an Existing Project or Solution................................................................................................37Topics in this section..............................................................................................................37 Add New Items..........................................................................................................................38Procedures.........................................................................................................................38Import Existing Items.................................................................................................................39Procedures.........................................................................................................................39Edit Items..................................................................................................................................40Procedures.........................................................................................................................40Topics in this section..............................................................................................................40Use the Code Window............................................................................................................40