Function-Handling Functions

AutoCAD AutoLISP & Visual LISP

 
Function-Handling Functions
 
 
 

The following table provides summary descriptions of the AutoLISP function-handling functions.

Function-handling functions

Function

Description

(applyfunction lst)

Passes a list of arguments to a specified function

(defunsym ([arguments]

[/variables...]) expr ...)

Defines a function

(defun-qsym ([arguments]

[/variables...]) expr ...)

Defines a function as a list (intended for backward-compatibility only)

(defun-q-list-ref 'function)

Displays the list structure of a function defined with defun-q

(defun-q-list-set'sym list)

Defines a function as a list (intended for backward-compatibility only)

(evalexpr)

Returns the result of evaluating an AutoLISP expression

(lambdaarguments expr ...)

Defines an anonymous function

(progn[expr] ...)

Evaluates each expression sequentially, and returns the value of the last expression

(tracefunction ...)

Aids in AutoLISP debugging

(untracefunction ...)

Clears the trace flag for the specified functions