• Industries
  • Products
  • Buy
  • Services & Support
  • Communities
  • Discussion Groups

    Autodesk ObjectARX

    Reply
    New Member
    Posts: 2
    Registered: ‎11-13-2006
    Accepted Solution

    Can not get arx file to autoload in AutoCAD Mechanical 2013

    189 Views, 2 Replies
    12-31-2012 08:11 AM

    We have a small arx program that adds a bunch of commands to AutoCAD.  I have recompiled the program using VS 2010, and the program works fine when loaded using appload (the commands register and work).  Now I am trying to autoload the program by adding registry entries in HKLM\SOFTWARE\Autodesk\AutoCAD\R19.0\ACAD-B005:409\Applications.  I am using 0x00000002 for LOADCTRLS.  On AutoCAD startup, none of the commands are registered.  When I check in the loaded applications list (appload), it shows that the program is loaded, but it is grayed out.  I dont see any errors in the Autocad message window on startup.  Any ideas on what could be wrong?

    Please use plain text.
    Mentor
    Posts: 239
    Registered: ‎08-06-2002

    Re: Can not get arx file to autoload in AutoCAD Mechanical 2013

    12-31-2012 08:18 AM in reply to: scott.edsell

    Does the (arx) function show that your ARX module is loaded? Have you checked the debugger output while the module loads?

    --
    Owen Wengerd
    ManuSoft
    Please use plain text.
    New Member
    Posts: 2
    Registered: ‎11-13-2006

    Re: Can not get arx file to autoload in AutoCAD Mechanical 2013

    12-31-2012 08:59 AM in reply to: owenwengerd

    Thanks that lead to the solution.  The arx function showed that the arx program was loaded, but the group wasn't.  I looked at the code and there was a section in AcRx::kInitAppMsg: where the comands would only be registered if the window was visible (if (::IsWindowVisible(adsw_acadMainWnd())){).  For some reason this returns false in AutoCAD 2013.  I commented this check out, and now it works.  Now I just have to figure out why this check was added :-)

     

    Thanks!

    Please use plain text.