LISP Progress Bars (Tip #2205) by Terry Miller is a cool trick for entertaining users when your program is involved in a long iterative process. When applications need a long time to solve a problem or search for an answer, it's not uncommon for users to be left in the dark, wondering if the process is actually running or if the computer needs to be reset. Progress bars are an accepted method by most users because they see them frequently in other applications. Implementing progress bars in Visual LISP is greatly simplified by using Terry's utility set. In the source code, you'll find several examples of the progress bar system being used (functions named DEMO) in a variety of instances. There are three functions that you use in your programming along with a dialog box file (DCL) that needs to be located somewhere in the AutoCAD search path. The three functions can be found in the LISP source file after the DEMO examples, and they are for initiating the progress bar dialog, filling in the bar during the run and then closing the dialog. This sure beats putting dots on the Command line! |