Demand Loading arx apps from registry

Is there any documentation on what needs to be set in the registry and where to enable demand loading of arx files when the user types in a command? So far I have only found documentation on the API classes, is there any other documentation on how to set up add-in products and recommended procedures for add-in loading?

Comments

  • Have you checked the web ?
    There should be lot of docs about the Registry keys + locations, and the several flags, and the way how to define DemandLoad-enabled commands.

    many greetings !

  • Dinomyar
    edited June 2017

    I have and could not find a single thing about ARX files and demand loading for Bricscad, when a command is entered. It does work if the LOADCTRLS is set to 2 to load at startup, but not if it is set to "c" (12) to load only when a command is run.

    @Torsten Moses said:
    Have you checked the web ?
    There should be lot of docs about the Registry keys + locations, and the several flags, and the way how to define DemandLoad-enabled commands.

    many greetings !

  • See the web ARX documentations - especially "AcadAppInfo" class ...
    "AcadApp::LoadReasons" explains all the flags : 4 (0x4) is for command-based DemandLoad ...

    The DemandLoad logic with BricsCAD/BRX is identical with AutoCAD/ARX, besides the different Registry location.

    But you also need to declare the commands, of course.
    Please see the attached images - shows how our BRX test application is registered ...
    for the command names : the "key" string is the English, non-localised name, the "value" is the "local", translated name ...
    if properly registered, then even the commands AutoComplete list will show them.

  • Hallo,

    yes, that's correct so far ... those "LoadCtrl" flags are documented in the ARX docs ... BricsCAD/BRX is compatible, and works identically with the flags.
    1 = on-proxy-detection
    2 = on-startup
    4 = on-command

    are the important ones, can be bit-wise combined.

    hope this helps a bit ?
    many greetings !

This discussion has been closed.