The sample application bmake.lsp and its associated bmake.dcl file illustrate a number of useful dialog box techniques. These files are in the AutoCAD Support directory. The bmake application is essentially an interactive interface to the entmake function. You can use it to define new blocks and to view the names of existing blocks. Some of the techniques illustrated by bmake are
- Hiding dialog boxes by defining special status codes for done_dialog to pass to start_dialog. See the main loop of the C:BMAKE function (following the load_dialog and action_tile calls).
- Using a toggle to enable or disable another tile. See the definition of the DO_UNNAMED function.
- Building a list for a list box. See the PAT_MATCH and SORT functions.
- Displaying the standard AutoCAD Help dialog box. See the DO_HELP function.
Aside from demonstrating dialog box techniques, bmake illustrates good design.