Subject: Using a script to load applications automatically

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 Intel­liCAD 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.

Using_a_script_to_load_applications_automatically
© Copyright 2023. Back2CAD Technologies LLC. All rights reserved. Kazmierczak® is a registered trademark of Kazmierczak Software GmbH. Print2CAD, CADdirect, CAD.direct, CAD Direct, CAD.bot, CAD Bot, are Trademarks of BackToCAD Technologies LLC. DWG is the name of Autodesk’s proprietary file format and technology used in AutoCAD® software and related products. Autodesk, the Autodesk logo, AutoCAD, DWG are registered trademarks or trademarks of Autodesk, Inc. All other brand names, product names, or trademarks belong to their respective holders. This website is independent of Autodesk, Inc., and is not authorized by, endorsed by, sponsored by, affiliated with, or otherwise approved by Autodesk, Inc. The material and software have been placed on this Internet site under the authority of the copyright owner for the sole purpose of viewing of the materials by users of this site. Users, press or journalists are not authorized to reproduce any of the materials in any form or by any means, electronic or mechanical, including data storage and retrieval systems, recording, printing or photocopying.