Use wizard ARX secondary development (a)

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

11

Step two: just enter the name of it, and then direct Finish

22

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.

33

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.

44

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.

55

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

66

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)

77

Then we can enter the command line. Command to execute myfun we write () function, which is the output of "Hello, World \ n"

88

Guess you like

Origin www.cnblogs.com/sunw26/p/12033868.html