Running the Application
Before running your program, save all the files you changed, if you have not already
done so. You can click File Save All from the Visual LISP menu, or use the Alt+Shift+S keyboard shortcut to save
all your open files.
The next thing you must do is reload all the files in Visual LISP.
To load and run all the files in your application
- If the project file you created earlier in this lesson is not already open, click
Project Open Project from the Visual LISP menu, then enter the project file name gpath; do not include the .prj extension. If Visual LISP does not find the project file, click the Browse button
and choose the file from the Open Project dialog box. Click Open.
- Click the Load Source Files button in the project window.
- Enter (C:GPath) at the Visual LISP Console prompt to run the program. If you have some debugging
to do, try using the tools you learned in Lessons 2 and 3. And remember, if all else
fails, you can always copy the code from the TutorialVisualLISPLesson4 directory.
Also, try drawing the path using both lightweight and old-style polylines. After drawing
the paths, use the AutoCAD LIST command to determine whether or not your program is
drawing the correct entity types.