vlr-insert-reactor


(vlr-insert-reactor customData callbackList)

This function creates and attaches a Insert 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-beginInsert

a block is about to be inserted


:vlr-beginInsertM

a block is about to be inserted, using a 3D transformation matrix


:vlr-otherInsert

a block is about to be inserted; intermediate event, before ObjectId translation will happen


:vlr-endInsert

a block insertion operation has been finished


:vlr-abortInsert

a block insertion operation has been aborted


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

reactor : the insert reactor object - #<VLR-Insert-Reactor>
args : (list) contains 1...3 arguments, depending on the particular event :


:vlr-endInsert

:vlr-abortInsert

1 argument (VLA-Object)
the database in operation


:vlr-otherInsert

2 arguments
1st argument : (VLA-Object) the database in operation
2nd argument : (VLA-Object) the source database in operation


:vlr-beginInsert

3 arguments
1st argument : (VLA-Object) the database in operation
2nd argument : (string) name of the block being inserted
3rd argument : (VLA-Object) the source database in operation


:vlr-beginInsertM

3 arguments
1st argument : (VLA-Object) the database in operation
2nd argument : (list) 3D transformation matrix
3rd argument : (VLA-Object) the source database in operation

Return

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

Example


Remarks




©  Bricsys NV. All rights reserved.