We are independent & ad-supported. We may earn a commission for purchases made through our links.
Advertiser Disclosure
Our website is an independent, advertising-supported platform. We provide our content free of charge to our readers, and to keep it that way, we rely on revenue generated through advertisements and affiliate partnerships. This means that when you click on certain links on our site and make a purchase, we may earn a commission. Learn more.
How We Make Money
We sustain our operations through affiliate commissions and advertising. If you click on an affiliate link and make a purchase, we may receive a commission from the merchant at no additional cost to you. We also display advertisements on our website, which help generate revenue to support our work and keep our content free for readers. Our editorial team operates independently of our advertising and affiliate partnerships to ensure that our content remains unbiased and focused on providing you with the best information and recommendations based on thorough research and honest evaluations. To remain transparent, we’ve provided a list of our current affiliate partners here.
Software

Our Promise to you

Founded in 2002, our company has been a trusted resource for readers seeking informative and engaging content. Our dedication to quality remains unwavering—and will never change. We follow a strict editorial policy, ensuring that our content is authored by highly qualified professionals and edited by subject matter experts. This guarantees that everything we publish is objective, accurate, and trustworthy.

Over the years, we've refined our approach to cover a wide range of topics, providing readers with reliable and practical advice to enhance their knowledge and skills. That's why millions of readers turn to us each year. Join us in celebrating the joy of learning, guided by standards you can trust.

What is AutoLISP®?

By Jeffrey L. Callicott
Updated: May 16, 2024
Views: 7,476
References
Share

AutoLISP® is a variant of the LISP family of programming languages. It was designed for programming within AutoCAD®, a computer-aided drafting and design (CADD) program developed by Autodesk® Inc. AutoLISP® can be used to create scripts for use in AutoCAD® and any vertical applications that run using the AutoCAD® environment, including AutoCAD® Civil 3D&reg, AutoCAD® Map 3D, and AutoCAD® Architecture. It is worth noting the inability of AutoCAD LT® to run LISP routines, which is one of the key features that differentiate it from AutoCAD®.

LISP is one of the oldest programming languages known, dating to 1958; the term “LISP” derives from the words “list processor.” XLISP was one variant of LISP and was the basis of the development for AutoLISP®, which made its first appearance in 1986 within AutoCAD® Release 2.18. It was continually modified and enhanced through AutoCAD® Release 13;; when AutoCAD® 2000 was released in 1999, AutoLISP® was replaced with the more powerful Visual LISP®. In the following years, however, Autodesk® halted nearly all development of Visual LISP®, preferring to focus on other programming tools such as ObjectARX®, .NET, and Visual® Basic (VBA). Despite this shift, AutoLISP® remains the most popular way users in 2011 choose to customize or add functionality to AutoCAD®.

Routines created using AutoLISP® typically automate tasks or produce add-on programs for use within AutoCAD®. The programming language is very flexible and can be used to modify nearly any aspect of the AutoCAD® environment or a drawing file. Examples of things that can be produced using AutoLISP® are calculators, programs that edit blocks, and routines that automatically draw content into a file. It is even possible to run a sequence of commands in batch over many files.

AutoLISP® can be programmed from the AutoCAD® command line, but this is rarely done. For all but the most basic of LISP programs, the use of an external text editor is preferred, because it greatly assists in the entry of complicated code. There are literally thousands of ways in which AutoLISP® can be used to input commands or otherwise control AutoCAD®. Usually, the files produced are plain text files saved with an extension of LSP. In case one LISP routine is engineered to contain several programs, the file type can be VLX or FAS.

The LSP files can be loaded within AutoCAD® using the Load command. Once a LISP routine has been loaded, all the user needs to do to execute it is simply type its name on the command line. It also is possible to automatically run one or more LISP routines every time AutoCAD® is launched.

Share
EasyTechJunkie is dedicated to providing accurate and trustworthy information. We carefully select reputable sources and employ a rigorous fact-checking process to maintain the highest standards. To learn more about our commitment to accuracy, read our editorial process.
Link to Sources
Discussion Comments
Share
https://www.easytechjunkie.com/what-is-autolisp.htm
Copy this link
EasyTechJunkie, in your inbox

Our latest articles, guides, and more, delivered daily.

EasyTechJunkie, in your inbox

Our latest articles, guides, and more, delivered daily.