Share
 
 

Tutorial: Garden Path (Visual LISP IDE)

Attention: This tutorial requires the Visual LISP Editor and applies to AutoCAD for Windows only.

Overview

Your goal in this tutorial is to develop a new command for AutoCAD that draws a garden path and fills it with circular tiles. The tutorial is divided into seven lessons.

This tutorial covers

  • The Visual LISP® environment is introduced. This environment provides you with editing, debugging, and other tools specific to the creation of AutoLISP applications.
  • ActiveX® and Reactor functions of AutoLISP are demonstrated, as well as several other extensions to the AutoLISP language provided with Visual LISP.

There are two possible execution contexts for this tutorial:

  • The application may be run as interpreted LISP in piecemeal files and/or functions that are loaded into a single document, or
  • The program code can be compiled into a VLX application, denoted by a *.vlx executable. A VLX operates from a self-contained namespace that can interact with the application-loading document.

Lessons

Note: As you progress from lesson to lesson, you receive progressively less detailed instructions on how to perform individual tasks.

Assumptions

This tutorial assumes you have some familiarity with LISP or AutoLISP®. It also assumes you understand basic Windows® file management tasks such as creating directories, copying files, and navigating through the file system on your hard disk or network.

Sample Files

If you chose the full installation option when you installed AutoCAD, the source code files are in the following directory:

<AutoCAD directory>\Tutorial\VisualLISP\

It is recommended you do not modify the sample source code files supplied with AutoCAD. If something is not working correctly within your program, you may want to copy the supplied source code into your working directory. Throughout the tutorial, the working directory is referred to as:

<AutoCAD directory>\Tutorial\VisualLISP\MyPath

If you choose a different path for your working directory, substitute your directory name at the appropriate times.

Was this information helpful?