The following is an overview of the changes made to AutoLISP in recent releases.
AutoCAD 2023
No new or changed functions.
AutoCAD 2022
No new or changed functions.
AutoCAD 2021
- New
-
- AutoCAD AutoLISP Extension for Visual Studio (VS) Code - Allows for the editing and debugging of AutoLISP files with VS Code on Windows or Mac OS. The LISPSYS system variable must to set to 1 or 2 in order to debug AutoLISP files with the AutoCAD AutoLISP Extension. When LISPSYS is set to 0, the legacy AutoLISP engine and Visual LISP IDE are used for editing and debugging AutoLISP files.
- DCL support on Mac OS - Dialog boxes defined using DCL can now be displayed with AutoLISP. All DCL tiles supported on Windows are also supported on Mac OS, but not all tile attributes are supported on Mac OS.
- Changed
-
These functions were updated to support Unicode character strings/codes:
- ascii - Returns the conversion of the first character of a string into its Unicode character code (an integer).
- chr - Converts an integer representing a Unicode character code into a single-character string.
- load - Evaluates the AutoLISP expressions in a file.
- open - Opens a file for access by the AutoLISP I/O functions. A new optional argument has been added which allows for the specification of the character encoding to be used when reading/writing the file. When the argument isn't provided, the file is assumed to contain a multibyte character set (MBCS) which is the legacy behavior.
- read-char - Returns the integer representing the Unicode character read from the keyboard input buffer or from an open file.
- read-line - Reads a string from the keyboard or from an open file, until an end-of-line marker is encountered.
- strlen - Returns an integer that is the number of characters in a string.
- substr - Returns a substring of a string.
- vl-directory-files - Lists all files in a given directory.
- vl-file-copy - Copies or appends the contents of one file to another file.
- vl-file-delete - Deletes a file.
- vl-file-directory-p - Determines if a file name refers to a directory.
- vl-file-rename - Renames a file.
- vl-file-size - Determines the size of a file, in bytes.
- vl-file-systime - Returns last modification time of the specified file.
- vl-filename-mktemp - Calculates a unique file name to be used for a temporary file.
- vl-list->string - Combines the Unicode characters associated with a list of integers into a string.
- vl-mkdir - Creates a directory.
- vl-string->list - Converts a string into a list of Unicode character codes.
- vl-string-elt - Returns the Unicode representation of the character at a specified position in a string.
- vl-string-mismatch - Returns the length of the longest common prefix for two strings, starting at specified positions.
- vl-string-position - Looks for a character with the specified Unicode code in a string.
- vl-string-search - Searches for the specified pattern in a string.
- vl-string-subst - Substitutes one string for another, within a string.
- vl-string-translate - Replaces characters in a string with a specified set of characters.
- vl-vbaload - Loads a VBA project.
- vlisp-compile - Compiles AutoLISP source code into a FAS file.
- write-char - Writes one Unicode character to the screen or an open file.
- write-line - Writes a string to the screen or to an open file.
- Obsolete
- Visual LISP IDE (Windows Only) - The Visual LISP (VL) IDE has been retired and will be removed in a future release. It is recommended to use the AutoCAD AutoLISP Extension for Visual Studio (VS) Code creating new and updating existing AutoLISP programs. LISPSYS must be set to 0 before the VL IDE can be used to edit and debug AutoLISP files.
AutoCAD 2020
No new or changed functions.
AutoCAD 2019
No new or changed functions.
AutoCAD 2018
No new or changed functions.
AutoCAD 2017
No new or changed functions.
AutoCAD 2016
- Changed
-
osnap - Returns a 3D point that is the result of applying an Object Snap mode to a specified point. The function no longer accepts the
qui mode. Using the
qui mode results in a value of
nil to be returned, even if other modes are specified.
- Obsolete
-
- getcfg - Retrieves application data from the AppData section of the
acad20xx.cfg file.
- setcfg - Writes application data to the AppData section of the
acad20xx.cfg file.
Note: getcfg and
setcfg are still available for compatibility, but might be removed in a future release. It is recommended to use the
vl-registry-read and
vl-registry-write functions as replacements.
AutoCAD 2015
No new or changed functions.
AutoCAD 2014
- New
-
- findtrustedfile - Searches the AutoCAD trusted file paths for the specified file.
- showHTMLModalWindow - Displays a modal window with a HTML document; use in conjunction with the new JavaScript API.
- Changed
-
- findfile - Searches the AutoCAD support and trusted file paths. Function was updated to search the new trusted applications paths.
AutoCAD 2013
- New
-
-
Obsolete
-
AutoCAD 2012
- New
-
- command-s - Executes an AutoCAD command and the supplied input.
- *pop-error-mode* - Error-handling function that ends the previous call to
*push-error-using-command* or
*push-error-using-stack*.
- *push-error-using-command* - Error-handling function that indicates the use of the command function within a custom
*error* handler.
- *push-error-using-stack* - Error-handling function that indicates the use of variables from the AutoLISP stack within a custom
*error* handler.
AutoCAD 2010
- Changes
-
- help - Invokes the Help facility. Function was updated to add support for HTML documentation.