Previewing a Dialog Box

Visual LISP provides a preview feature for checking the results of your DCL coding.

To preview a dialog box defined with DCL

  1. Click Tools Interface Tools Preview DCL in Editor from the Visual LISP menu.
  2. Click OK when prompted to specify a dialog name.

    In this case, your DCL file defines just a single dialog box, so there is no choice to be made. As you create larger and more robust applications, however, you may end up with DCL files containing multiple dialog boxes. This is where you can select which one to preview.

  3. If the dialog box displays successfully, choose any button to end the dialog.

Visual LISP passes control to AutoCAD to display the dialog box. If AutoCAD finds syntactical errors, it displays one or more message windows identifying the errors.

If AutoCAD detects DCL errors and you are unable to figure out how to fix them, copy the gpdialog.dcl file in your Tutorial\VisualLISP\Lesson4 directory and save it in the Support directory.