Share

acrxLoadModule

C++

bool acrxLoadModule(
    const ACHAR * moduleName, 
    bool printit, 
    bool asCmd = false
);

File

rxregsvc.h

Description

This function is a "C" code wrapper for:

acrxDynamicLinker->loadModule(moduleName, printit);

which loads the ObjectARX program whose file name is moduleName. If the file name does not have an ObjectARX extension, then moduleName must include the file extension. If printit is non-zero, then status messages such as "Runtime Extension is already loaded." or "AcRxDynamicLinker failed to load " will be printed on the AutoCAD command line.

When asCmd is true, loading can happen only once. A second attempt to load will return false. The reference count for the application is not increased in this case. When asCmd is false, it's possible to call this method more than once and still get a successful return value. When the .arx you want to load is already loaded, this method will simply increment the reference count for the application.

Parameters

Parameters Description
moduleName Input file name or URL of ObjectARX program to load
printit Input 0 or 1 (Boolean) indicating whether status messages should be displayed
asCmd Input Boolean indicating whether to load the application as if by user command

Was this information helpful?