I Need advice on how to run external executable file (creat from c++) in autocad with command startapp
|
I Need advice on how to run external executable file (creat from c++) in autocad with command startapp
By "executable", I assume you mean *.exe. You can't run code from another thread inside the same process as autocad. The c++ code must be compiled as an ObjectArx dll. Then you can load it with the lisp (arxload) function.
You could shell out to an executable:I start a few of them in my CUI that way.Code:(command "sh" "C:\\Program Files\\Autodesk Map 5\\Vlisp\\Tableprint8.exe")
Yep, and even if it's an EXE it might be registered as an ActiveX object. Thus you can link to it using vlax-get-or-create-object. Like lots do with Excel.