The original "AutoCAD Managed application wizard" is very simpl. Only the "Autodesk.AutoCAD.Runtime" namespace is imported, but the ObjectARX application often needs other namespaces such as "Autodesk.AutoCAD.DatabaseSevices" and "Autodesk.AutoCAD.ApplicationSevices". Furthermore, you must type "netload" to load the built assembly.
The Enhanced AutoCAD .NET Project Application Wizard solve these problems.
Features:
1.Supports multiple AutoCAD versions
2.Opens an drawing when AutoCAD is launched
3.Adds some useful namespace such as Autodesk.AutoCAD.DatabaseServices
4.Can add AutoCAD COM reference
5.Adds some often used variables such as database,editor and tranaction
6.Launches the correct version of AutoCAD when debugging in Visual Studio
7.Never need to type NetLoad to load the assembly
System Required:1.AutoCAD 2006/2007/2008 2.Visual Studio2005/2008 or C#/VB 2008 express edition
1.Download the suitable version from
http://www.codeplex.com/dotnetarx,then unzip it.Double click the .msi setup file,and install the wizard.
2.Invoke Visual Studio 2008 IDE then start a new project. Select the node "ObjectARX" under "Visual C# Projects" and click on the template "AutoCAD Managed CS Project Application" as shown below:
3.Type in a project name. Set the location where you want the project to be created. Select OK. The "Managed C# Application Wizard For AutoCAD2008" dialog will then appear.
4.You can select the AutoCAD version,open a drawing when AutoCAD is launched,add the AutoCAD COM reference to your program, and enable Unmaged debugging.
5.Select the tab "Assemblies&Namespaces" and check the checkbox before the name of the assembly and namespace you want to include in your application. Note: "Autodesk.AutoCAD.Runtime" ,"Autodesk.AutoCAD.DatabaseServices" ,"Autodesk.AutoCAD.ApplicationServices", "Autodesk.AutoCAD.EditorInput" are checked by default because they are often included in the ObjectArx applications, you can uncheck them if your application does not need these namespaces.
6.Select the tab "Class" to add summary description for your application and the common used variables such as db,ed,and trans.
7.Click "Finish" to accept the settings you have selected.
8.Press F5 to debug your application,the correct version of AutoCAD will be launched.You don't need to type "netload",just type the command name you will get the result!