Your First Program

Oct 12

This module presents the first AutoLISP/DCL application that you will create “The Hello World” dialog box application. References listed herein to AutoLISP equally apply to the LISP programming language whether used in AutoCAD, IntelliCAD or any other CAD based program which includes the LISP based programming language. References to AutoCAD equally...

Read More

Create a Program Folder

Oct 12

Before writing the actual programs, you need to create a folder to store the .DCL and .LSP program code files. From this point, we assume that you have created a directory off the C: drive named myprograms  All programing application files will be saved in this folder. 1. To create the program folder in Windows click Start then select My Computer. 2. Double click...

Read More

The Hello Program

Oct 12

A DCL file contains the description and layout of the dialog box on all platforms. Differences in appearance depend on the platform’s graphical user interface (GUI). Executing the Hello program from within the CAD program command prompt does the following: Command: Hello <Enter> This displays the dialog box as shown in Figure 1.1. This dialog contains three...

Read More

HELLO DCL Code

Oct 12

The Code Inside the HELLO.DCL File You may type the code for the DCL file as each step is presented here or type the entire code from the figure shown at the end of this module. The complete code is shown in Figure 1.5 at the end of these first lessons. ___________________________________________________________________ Add a blank line after the comments...

Read More

Dialog Tile

Oct 12

A dialog tile is the primary tile that defines the dialog box. The dialog box name appears before the dialog tile is declared separated by a space, a colon :, a space, dialog, a space, and a curly brace. A dialog’s name is case sensitive and must be called from the LISP program exactly as it appears in the DCL file. The name hello is different from the name Hello...

Read More

Text Tile

Oct 13

A text tile is a useful way to display feedback about user actions. A static message may be defined in the label attribute or the message may change during runtime by leaving the label blank. A text tile’s width is determined by the larger of the label attribute or the width attribute. At lease one of these attributes must be specified for the tile width. DCL...

Read More