AutoLISP Basics

You can use number, string, and list-handling functions to customize AutoCAD.

This chapter introduces the basic concepts of the AutoLISP. programming language. It describes the core components and data types used in AutoLISP, and presents examples of simple number-, string-, output-, and list-handling functions.

AutoLISP code does not need to be compiled, so you can enter the code at a Command line and immediately see the results. Some examples in this chapter are intended to be entered at the Visual LISP. (VLISP) Console window prompt (_$), while others are entered at the AutoCAD. Command prompt (Command:).