AutoLISP

AutoLISP

AutoLISP is a dialect of Lisp programming language built specifically for use with the full version of AutoCAD and its derivatives, which include "Autodesk Map 3D" and "Autodesk Architectural Desktop". Neither the application programming interface nor the interpreter to execute AutoLISP code are included in the AutoCAD LT product line, except in add-ons such as "LT-Extender".

Features

AutoLISP is a small, dynamically scoped LISP (list processing language). It lacks modern LISP features such as a macro system, settable list structure or let bindings. Aside from the core language, most of the primitive functions are for geometry or the manipulation of graphical entities in AutoCAD. The properties of these graphical entities are revealed to AutoLISP as association lists in which AutoCAD "group codes" are paired with values that indicate properties such as points, radii, colors, layers, linetypes, etc.

AutoLISP code can interact with the user through primitive functions that allow the user to input points, selection sets, numbers and other data. AutoLisp also has a built in GUI mini-language, the Dialog Control Language, for creating interactive forms within AutoCAD.

; example of macro without command-line interface exposed

(defun hello_world () (alert "Hello World!"))

; example of macro with command-line interface hidden

(defun c:hello_world () (alert "Hello World!") (princ))

; example of LISP's flexible condition handling

(cond ((= a b) (princ " (a) and (b) are equal")) ((and (= (type a) 'INT) (= (type b) 'INT)) (princ (strcat " (a)+(b)=" (itoa (+ a b))))) ((and (= (type a) 'STR) (= (type b) 'STR)) (princ (strcat " (a)+(b)=" a b))) ((and (listp a) (= (type b) 'SUBR)) (mapcar '(lambda (x) (princ (b x))) a)))

History

AutoLISP was derived from a very early version of XLISP, which was created by David Betz. The language was introduced in AutoCAD Version 2.18 in January 1986, and continued to be enhanced in successive releases up to Release 13 in February 1995. After that, its development was neglected by Autodesk in favor of more fashionable development environments (VBA, .NET and Object ARX)Fact|date=June 2008. However, it has remained AutoCAD's primary user customization language.

Visual-LISP, a considerably enhanced version of AutoLISP including an IDE, debugger, and compiler, was developed and sold by third party developer Basis Software. Vital LISP was a superset of the existing AutoLISP language that added VBA-like access to the AutoCAD object model, reactors (event handling for AutoCAD objects), general ActiveX support, and some other general Lisp functions. Autodesk purchased this, renamed it Visual LISP, and briefly sold it as an add-on to AutoCAD 14 released in May 1997. It was incorporated into AutoCAD 2000 released in March 1999, as a replacement for AutoLISP. Since then Autodesk has chosen to halt major enhancements to Visual LISP in favor of focusing more effort on VBA, .NET and ObjectARX.

AutoLISP has such a strong following that other CAD application vendors added it to their own products. FelixCAD, Bricscad, IntelliCAD and others have AutoLISP functionality, so that AutoLISP users can consider using them as an alternative to AutoCAD. Most development involving AutoLISP since AutoCAD 2000 is actually performed within Visual LISP since the original AutoLISP engine was replaced with the Visual LISP engine. There are thousands of utilities and applications that have been developed using AutoLISP or Visual LISP.

External links

* [http://www.autolisp.com.br AutoLISP, AutoCAD and Visual LISP (Portuguese)]
* [http://usa.autodesk.com/adsk/servlet/index?siteID=123112&id=770237 Visual LISP]
* [http://www.steinvb.net/vldb/ The Visual LISP Developers Bible]
* [http://myfeedback.autodesk.com/history/autocad_release_history.htm AutoCAD History]
* [http://www.faqs.org/faqs/CAD/autolisp-faq/ AutoLISP FAQ]
* [http://lispwiki.com Wiki of AutoLISP source]


Wikimedia Foundation. 2010.

Игры ⚽ Нужно сделать НИР?

Look at other dictionaries:

  • AutoLisp — [ˈɑːtoʊˌlɪsp] ist ein Dialekt der Programmiersprache LISP als Bestandteil des verbreiteten CAD Programmes AutoCAD. Mit Hilfe von AutoLisp können Funktionen in einem AutoCAD System hinzugefügt, gelöscht und geändert werden. Um dies zu… …   Deutsch Wikipedia

  • AutoLISP — [ˈɑːtoʊˌlɪsp] ist ein Dialekt der Programmiersprache LISP als Bestandteil des verbreiteten CAD Programmes AutoCAD. Mit Hilfe von AutoLisp können Funktionen in einem AutoCAD System hinzugefügt, gelöscht und geändert werden. Um dies zu… …   Deutsch Wikipedia

  • AutoLISP — AutoLISP,   eine funktionale Programmiersprache zur Entwicklung von Programmen für AutoCAD. Dabei können bei AutoCAD vorhandene Variablen verwendet werden. AutoLISP basiert auf den Konzepten der Sprache Lisp. Die Auslegung als Interpreter bzw.… …   Universal-Lexikon

  • AutoLISP — …   Википедия

  • AutoCAD — 2006, запущенный под Windows XP. Тип Программы САПР Разработчик Autodesk …   Википедия

  • Dialog Control Language — (DCL) is a high level description language and interpreter within AutoCAD for creating simple graphical dialogs. AutoLISP extensions use it to interact with the user in the AutoCAD environment. Contents 1 Features and usage 2 Example 3… …   Wikipedia

  • Auto CAD — AutoCAD Mechanical 2D Zeichnung AutoCAD Mechanical Desktop 3D Zusammenbau …   Deutsch Wikipedia

  • Autocad — Mechanical 2D Zeichnung AutoCAD Mechanical Desktop 3D Zusammenbau …   Deutsch Wikipedia

  • AutoCAD — Mechanical 2D Zeichnung AutoCAD [ɑːtoʊˈkæd] ist Teil der CAD Produktpalette von Autodesk. Die aktuelle Version AutoCAD 2012 wurde im März 2011 vorgestellt. Die Autodesk Produktpalette ist mit mehr als 3 Mio. verkauften Lizenzen weltweit die… …   Deutsch Wikipedia

  • ZwCAD — ZWCAD  2 х и 3 х мерная система автоматизированного проектирования и черчения компании ZWSOFT (ZWCAD Software Co., Ltd; до 2007 года Guangzhou Chinaweal Longteng Technology Co., Ltd). ZWCAD разработан на базе IntelliCAD с применением… …   Википедия

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”