vlr-lisp-reactor
(vlr-lisp-reactor customData
callbackList)
This function creates and attaches a Lisp
operation reactor to the current drawing, for the command events
specified by callbackList.
Arguments
|
customData
(any valid Lisp data) custom data to be
associated with the reactor object, can be NIL
callbackList (list) list of DottedPair entries, each
DottedPair has the form
(event
. callback)
event : one of
these symbolic constants
|
:vlr-lispWillStart
|
a Lisp expression is about to
be evaluated
|
|
:vlr-lispEnded
|
Lisp expression is has been
finished (on outermost Lisp expression)
|
|
:vlr-lispCancelled
|
Lisp expression has been
cancelled
|
callback : the
client Lisp side callback function, using 2 arguments :
(defun MyCB ( reactor args
/ ...) ...)
reactor : the lisp
reactor object - #<VLR-Lisp-Reactor>
args : (list)
contains 0...1 arguments, depending on the particular event
:
|
:vlr-lispEnded
:vlr-lispCancelled
|
0 arguments
|
|
:vlr-lispWillStart
|
1 argument
(string)
the first line of the Lisp expression to be
evaluated
|
|
Return
|
the reactor object
#<VLR-Lisp-Reactor> or NIL
|
Example
|
|
Remarks
|
|