Custom applications can be referenced in an external script, and then loaded each time CADdirect starts. Each application type has its own script requirements.
To run a TX/IRX custom application from a script when CADdirect starts
1 Create an ASCII file named icad.rx that contains the path to the IRX files on each line of the file.
2 Place icad.rx in the same folder as icad.exe.
3 Run CADdirect.
To load a .NET Classic custom application from a script when CADdirect starts
1 Create an ASCII file named icad.net that contains the path to a .NET plug-in file on each line of the file.
2 Place icad.net in the same folder as icad.exe.
3 Run CADdirect.
To load a LISP routine from a script when CADdirect starts
1 Create an ASCII file that contains the path to a LISP routine on each line of the file. Example file content:
(load "C:\\Users\\Documents\\username\\lisp routines\\areap.lsp")
2 Save the file with one of the following names:
• ICAD.LSP — Automatically loads the referenced LISP routines when IntelliCAD starts.
• ICADDOC.LSP — Automatically loads the referenced LISP routines when creating or opening each drawing file.
3 Place the .lsp file in the same folder as icad.exe.
4 Run CADdirect.
Use a system variable.
To make all drawings share the same LISP environment (variables, functions, etc.), set the LISPINIT system variable to 2.
To load an SDS custom application from a script when CADdirect starts
1 Create an ASCII file named icad.sds that contains the path to the .dll files on each line of the file.
2 Place icad.sds in the same folder as icad.exe.
3 Run CADdirect.