vlr-command-reactor


(vlr-command-reactor customData callbackList)

This function creates and attaches a Command 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-commandWillStart

a command is about to start


:vlr-commandEnded

a command has ended


:vlr-commandCancelled

a command was cancelled


:vlr-commandFailed

a command failed to properly complete


:vlr-unknownCommand

an unknown command name was entered, failed to start


callback : the client Lisp side callback function, using 2 arguments :
(defun MyCB ( reactor args / ...) ...)

reactor : the command reactor object - #<VLR-Command-Reactor>
args : (list) contains 1 element (string), which is the command name, always uppercase

Return

the reactor object #<VLR-Command-Reactor> or NIL

Example


Remarks




©  Bricsys NV. All rights reserved.