AutoLISP Developer's Guide (AutoLISP)

The AutoLISP Developer's Guide provides you with an overview of the main topics and workflows for using the AutoLISP programming language.

Sections in this Topic

Tutorials

AutoLISP Programming

Getting Started

Getting Organized

AutoLISP and Visual LISP

AutoLISP Documentation

Related Developer References

What's New or Changed

Basics

Expressions

Function Syntax

Defining Commands

Variables

Source Code Files

Comments in AutoLISP Program Files

Create and Open AutoLISP Source Code Files

Data Types

Integers

Reals

Lists

Point Lists

Dotted Pairs

Strings

Entity Names

Nil

Converting Data Types and Geometric Utilities

Angular Conversion

String Conversions

ASCII Codes

Coordinate System Transformations

Geometric Utilities

Unit Conversion

Working with AutoCAD and Using Commands

System and Environment Variables

Using AutoCAD Commands

Undoing Changes Made by a Routine

Pausing for User Input During an AutoCAD Command

Passing Pick Points to AutoCAD Commands

Accessing and Assigning Help to a Command

Prompting for User Input

Accessing and Requesting User Input

Controlling User-Input Function Conditions

Arbitrary Keyboard Input

Manipulating Drawing Objects

Adding an Entity without Using the Command Function

Modifying an Entity without the Command Function

Obtaining Entity Information

Selecting Objects and Selection Sets

Attaching Extended Data to an Entity

Symbol Tables

Dictionary Objects and Entries

Interacting with Devices and Operating System

Configuration Files

Controlling the Graphics and Text Windows

Controlling Low-Level Graphics

Controlling Menus

Calibrating Tablets

Searching for Files

File Descriptors

Handling Errors in AutoLISP Programs

Error Handling

Using the *error* Function

Catching Errors and Continuing Program Execution

Exiting a Function Quietly

Debugging AutoLISP Programs

Displaying Messages

Using Visual Studio (VS) Code with the AutoCAD AutoLISP Extension

Utilizing the Visual LISP Editor (Windows only)

Working with Programmable Dialog Boxes DCL

Extending AutoLISP with ActiveX (Windows only)