vlr-sysvar-reactor


(vlr-sysvar-reactor customData callbackList)

This function creates and attaches a SystemVariables 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-sysVarWillChange

a system variable is about to be changed


:vlr-sysVarChanged

a system variable has been changed


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

reactor : the SystemVariables reactor object - #<VLR-Sysvar-Reactor>
args : (list) contains 1...2 arguments, depending on the particular event :


:vlr-sysVarWillChange

1 argument (string)
name of the system variable


:vlr-sysVarChanged

2 arguments
1st argument : string, the name of the system variable
2nd argument : integer 1=success, 0=failed

Return

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

Example


Remarks




©  Bricsys NV. All rights reserved.