Use a wizard to create the first program OBJECTARX
工具:ObjectARX 2013 Wizards, Visual Studio 2010, Autocad2013
Step one: Open VS2010, using the wizard to create a template project
Step two: just enter the name of it, and then direct Finish
Step three: Open the project into acrxEntryPoint.cpp, found inside the MyGroupMyCommand function, we will add a custom command in the function in here I added a
command. After entering this command performs myfun function behind, the function we need to be added manually.
Step Four: Add myfun () function, here is a simple output word, remember to add the function prototype above, otherwise the compiler will be prompted to find the function.
Step Five: Find On_kInitAppMsg function, which is a function of a program executed at initialization, we need to add into the initialization command, so here plus a statement, adding commands to perform functions in front of us write on it.
Step Six: Find On_kUnloadAppMsg function, which is a function of the implementation of the program to uninstall, add this command before we remove it out
Step Seven: Build a 64 or 32-bit .arx program, using the AP (Appload) command in Acad2013 load our translation of the arx program (note that consistent and arx Acad number of bits must both be 32-bit or both 64-bit)
Then we can enter the command line.
Command to execute myfun we write () function, which is the output of "Hello, World \ n"