vlr-acdb-reactor


(vlr-acdb-reactor customData callbackList)

This function creates and attaches a Database operation reactor to the current drawing, for the database 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-objectAppended

an object has been added to the dwg database


:vlr-objectUnAppended

an object has been removed from the dwg database (i.e. by undo operation)


:vlr-objectReAppended

an object has been re-added to the dwg database (i.e. by redo operation)


:vlr-objectOpenedForModify

an object has been opened for write (i.e. to be modified afterwards)


:vlr-objectModified

an object has been modified


:vlr-objectErased

an object has been erased (i.e. by (entdel) function)


:vlr-objectUnErased

an object has been unerased (i.e. by (entdel) function)


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

reactor : the database reactor object - #<VLR-AcDb-Reactor>
args : (list) first list entry is the database which is affected, the second entry is the object being appended to that database - (#<VLA-OBJECT IAcadDatabase 000000003AA5B598> <Entity name: 3aa66070>)

Return

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

Example


Remarks




©  Bricsys NV. All rights reserved.