vlr-dwg-reactor
(vlr-dwg-reactor customData
callbackList)
This function creates and attaches a DWG
operation reactor, for the drawing 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-beginDwgOpen
|
a drawing file is about to be
opened
|
|
:vlr-endDwgOpen
|
a drawing file open operation
has ended
|
|
:vlr-beginClose
|
a drawing file is about to be
closed
|
|
:vlr-dwgFileOpened
|
a drawing file has been
loaded into CAD editor
|
|
:vlr-databaseConstructed
|
a drawing database has been
created
|
|
:vlr-databaseToBeDestroyed
|
a drawing database is about
to be destroyed
|
|
vlr-beginSave
|
a drawing file is about to be
saved
|
|
vlr-saveComplete
|
a drawing file has been
saved
|
callback : the
client Lisp side callback function, using 2 arguments :
(defun MyCB ( reactor args
/ ...) ...)
reactor : the dwg
reactor object - #<VLR-Dwg-Reactor>
args : (list)
contains 0...2 arguments, depending on the particular event
:
|
:vlr-databaseConstructed
:vlr-beginClose
:vlr-databaseToBeDestroyed
|
0 arguments
|
|
:vlr-beginDwgOpen
:vlr-endDwgOpen
:vlr-dwgFileOpened
|
1 argument
(string)
identifies the dwg file being in open
operation
|
|
:vlr-beginSave
|
2 arguments
1st argument : database object
2nd argument : string, dwg file name intended
for saving (can be changed by user)
|
|
:vlr-saveComplete
|
2 arguments
1st argument : database object
2nd argument : string, dwg file name used for
saving
|
|
Return
|
the reactor object
#<VLR-Dwg-Reactor>, or NIL
|
Example
|
|
Remarks
|
|