Programs | hosting
A U t o d e s k released "a U t o C a D hosting C # application Wizard" is very simple to write and has few options. It is just for your o B J e c t A R X program added "a U t O d e s K." A u t o C A D. R u n t i m E "This is a namespace." But in most cases, you also need things like "A u t o d e s K." A u t o C A D. D a T a B a s e s e v i c e S "T and" a U t o d e s K. A u t o C A D. A P p L i c a t i o n s e v i c e S "Such a namespace." Also, if you notice the wizard added s y S t e M. D l and S y S t e M. D a t A. D l l etc quotes, you will find that they are 1. 0 version of. and V i s u a l s t u d i o. N e T 2 0 0 3 cited. The n e t version should be 1. 1 of the.
So I rewrote the wizard and changed the relevant interface to Chinese. Please download the new AutoCAD 2006 Managed C # Program Wizard on Www.objectarx.net, then unzip and copy the extracted V C # folder to P R o G r a M F i l e s \ m i C r o s o f t V i s u a l s t u d i o. N E T 2 0 0 3 \ below.
- Start Visual Studio.NET 2003, and then create a new project. Select "Visual C # Projects" and click the "AutoCAD Managed CS Project Application" template.
- Type the name of the project, which is shown here as "Test". Set the location where the project files are saved, click OK. The AutoCAD2006 Managed C # Program wizard dialog box appears. Enter the developer code (RDS) that you registered on the Autodesk website in the text box. The demo is "Arx". For more information about RDS, please visit the following address:
Http://usa.autodesk.com/adsk/index/0,,1075006-123112,00.html
- Select the Namespaces tab and tick before the namespaces you want to join. Note: "Autodesk.AutoCAD.Runtime" and "Autodesk.AutoCAD.DatabaseServices" will automatically add to your program. "Autodesk.AutoCAD.ApplicationServices", "Autodesk.AutoCAD.EditorInput" and " Autodesk.AutoCAD.DatabaseServices.TransactionManager "because it is often used in Objectarx programs, so the default is chosen, of course, if your program does not need these namespaces, You can remove the hooks in front of them.
- Select the Commandmethod and Annotations tab to define the name of the Commandmethod property. The wizard automatically joins you with a function with the same name, which is used as a command function.
In this tab, you can also add a class description and determine whether the class requires a constructor. (By default, the wizard will generate constructors for you).
- Select the Unmanaged Options tab to decide whether to use unmanaged code in your program.