You can load an ObjectARX application using any of the following methods:
- Provide the application with features that allow it to be demand loaded by AutoCAD. These features include application-specific entries in the Windows system registry. See Demand Loading.
- Specify the application in the initial module file, acad.rx. This file contains ASCII text with the names of all programs AutoCAD should load when it is started. Each line in the file contains a program name (with the path if the file is not in a directory on the AutoCAD library search path). The acad.rx file must also be in a directory on the AutoCAD search path.
- Make an application load request from another ObjectARX application using AcRxDynamicLinker::loadModule().
- Use the APPLOAD command.
- Create a BUNDLE and deploy it to the ApplicationPlugins folder. See Application Automatic Loading.
- Use the arxload() function from AutoLISP.
- Use the acedArxLoad() function from ObjectARX.
- Enter the ARX command on the AutoCAD command line and use the Load option.
- Start AutoCAD from the DOS command line using the /ld or -ld switch followed by the path and file name of the ObjectARX application or Object Enabler. For example:
/ld c:\myfiles\test.arx or -ld test.arx.
If the entry does not include a full path, AutoCAD will look for the specified file on the ACAD search path.
This switch may be used more than once per startup command line, and other switches may be interspersed. For example:
acad /ld test1.arx /ld c:\myfiles\test2.arx /nologo /ld test3.arx
If the path or file name contains spaces, the path and file name should be wrapped in quotes. For example:
/ld "c:\my files\test.arx"