Click here to Skip to main content
15,881,709 members
Articles / Programming Languages / Visual Basic
Article

New AutoCAD Managed VB Project Application Wizard

Rate me:
Please Sign up or sign in to vote.
3.33/5 (5 votes)
25 Aug 20052 min read 64.7K   659   27   4
With "New AutoCAD Managed VB Project Application Wizard", you can write your ObjectARX applications (.NET) more conveniently.

Introduction

The original "AutoCAD Managed VB application wizard" is very simple. 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, the version of "System.dll" assembly and "System.Data.dll" assembly is 1.0, but in Visual Studio .NET 2003, we need the 1.1 version. So I decided to rewrite the wizard to solve these problems. Download the files in the attachment and unzip them. Then copy the folder "Vb7" to the directory: \Program Files\Microsoft Visual Studio .NET 2003\.

  • Invoke Visual Studio .NET 2003 IDE and start a new project. Select the node "Visual Basic Projects" and click on the template "New AutoCAD Managed VB Project Application" as shown below:

    Image 1

  • Type in a project name, here we enter "Test". Set the location where you want the project to be created. Select OK. The "AutoCAD Managed VB Application Wizard For AutoCAD2006" dialog will then appear. Enter your Registered Developer Symbol (RDS). Here we enter "arx". For more information on Registered Developer Symbols (RDS) go to this URL.

    Image 2

  • Select the tab "NameSpace" and check the checkbox before the name of the namespace you want to include in your application. Note: "Autodesk.AutoCAD.Runtime" and "Autodesk.AutoCAD.DatabaseServices" are automatically added to your application. "Autodesk.AutoCAD.ApplicationServices", "Autodesk.AutoCAD.EditorInput" and "Autodesk.AutoCAD.DatabaseServices.TransactionManager" 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.

    Image 3

  • Select the tab "CommandMethod and Commit" to define the name of the CommandMethod attribute. The wizard will add a function that we can use for our command, and give it the same name as the CommandMethod attribute. In this tab, you can also add summary description for the class and determine whether to have a constructor of the class or not (by default, the class will not have a constructor).

    Image 4

  • Select the tab "Unmanaged Option" to determine whether to use unmanaged code or not.

    Image 5

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
China China
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions

 
GeneralVB Exprees 8. Creating AutoCAD Application Vizard Pin
SanganakSakha21-Sep-09 0:55
SanganakSakha21-Sep-09 0:55 
I have downloaded VB Express 8. How do I create my own application wizard for AutoCAD?
Generalhi Pin
ari8525-Feb-08 7:16
ari8525-Feb-08 7:16 
GeneralVS.Net 2005 & AutoCAD 2007 Pin
weirbear24-Aug-06 5:58
weirbear24-Aug-06 5:58 
GeneralRe: VS.Net 2005 & AutoCAD 2007 Pin
S Sandy27-Aug-09 19:45
S Sandy27-Aug-09 19:45 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.