vlr-lisp-reactor

AutoCad AutoLISP Functions

 
vlr-lisp-reactor
 
 
 

Constructs an editor reactor object that notifies of a LISP event

(vlr-lisp-reactor data callbacks)

Arguments

data

Any AutoLISP data to be associated with the reactor object; otherwise nil if no data.

callbacks

A list of pairs of the following form:

(event-name . callback_function)

where event-name is one of the symbols listed in the “Lisp reactor events” table below, and callback_function is a symbol representing a function to be called when the event fires. Each callback function accepts two arguments:

reactor_object The VLR object that called the callback function.

list A list of extra data elements associated with the particular event. The contents of this list for particular events are shown in the table Lisp reactor callback data” table.

Return Values

The reactor_object argument.

Lisp reactor events

Event name

Description

:vlr-lispWillStart

An AutoLISP expression is to be evaluated.

:vlr-lispEnded

Evaluation of an AutoLISP expression has been completed.

:vlr-lispCancelled

Evaluation of an AutoLISP expression has been canceled.

Lisp reactor callback data

Name

List length

Parameters

:vlr-lispEnded

:vlr-lispCancelled

0

 

:vlr-lispWillStart

1

A string containing the first line of the AutoLISP expression to evaluate.