C++
virtual bool loadModule( const ACHAR * fileName, bool printit, bool asCmd = false ) = 0;
Description
This function loads the fileName ObjectARX program. fileName is used as is with no search along the AutoCAD library search path and no file extension automatically added.
If printit is true, then a message is sent to the AutoCAD text screen indicating the success or failure of the load operation.
When asCmd is kTrue, loading can happen only once. A second attempt to load will return kFalse. The reference count for the application is not increased in this case. When asCmd is kFalse, 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.
The function returns true if the module was successfully found and loaded; otherwise, it returns false.
Parameters
| Parameters | Description |
|---|---|
| fileName | Input null-terminated string which is the file name of the ObjectARX module to load |
| printit | Input Boolean indicating whether or not to print load status message |
| asCmd | Input Boolean indicating whether to load the application as if by user command |