Results 1 to 5 of 5

Thread: run external executable file in autocad wit command startapp

  1. #1
    Member
    Join Date
    2012-08
    Posts
    2
    Login to Give a bone
    0

    Default run external executable file in autocad wit command startapp

    I Need advice on how to run external executable file (creat from c++) in autocad with command startapp

  2. #2
    Administrator Ed Jobe's Avatar
    Join Date
    2000-11
    Location
    Turlock, CA
    Posts
    6,409
    Login to Give a bone
    0

    Default Re: run external executable file in autocad wit 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.
    C:> ED WORKING....


    LinkedIn

  3. #3
    Certifiable AUGI Addict
    Join Date
    2001-03
    Location
    Tallahassee, FL USA
    Posts
    3,665
    Login to Give a bone
    0

    Default Re: run external executable file in autocad wit command startapp

    You could shell out to an executable:
    Code:
     (command "sh" "C:\\Program Files\\Autodesk Map 5\\Vlisp\\Tableprint8.exe")
    I start a few of them in my CUI that way.

  4. #4
    AUGI Addict
    Join Date
    2015-12
    Posts
    2,095
    Login to Give a bone
    0

    Default Re: run external executable file in autocad wit command startapp

    Quote Originally Posted by Ed Jobe View Post
    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.
    Huh? I run a few EXE's with (startapp...) calls, I just don't expect them to return anything. Syntax is important, including wrapping double-quotes to handle spaces in the path name.

  5. #5
    Certifiable AUGI Addict
    Join Date
    2015-11
    Location
    Jo'burg SA
    Posts
    4,512
    Login to Give a bone
    0

    Default Re: run external executable file in autocad wit command startapp

    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.

Similar Threads

  1. Replies: 3
    Last Post: 2014-11-14, 08:39 AM
  2. cannot run external command
    By b.glendenning in forum Revit - API
    Replies: 1
    Last Post: 2009-12-14, 05:50 PM
  3. how do I run an external ARX command thru' VBA
    By pravin.pai in forum VBA/COM Interop
    Replies: 3
    Last Post: 2009-08-27, 03:30 PM
  4. Replies: 5
    Last Post: 2009-07-09, 10:23 AM
  5. No External Command
    By mschroeder in forum Revit - Student Support
    Replies: 0
    Last Post: 2008-12-05, 04:52 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •