vlr-editor-reactor


(vlr-editor-reactor customData callbackList)

This function creates and attaches a Editor 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-beginClose

the drawing is about to be closed


:vlr-beginDxfIn

a DXF In operation is about to start


:vlr-abortDxfIn

a DXF In operation has been aborted (failed)


:vlr-dxfInComplete

a DXF In operation is completed


:vlr-beginDxfOut

a DXF Out operation is about to start


:vlr-abortDxfOut

a DXF Out operation has been aborted (failed)


:vlr-dxfOutComplete

a DXF Out operation is completed


:vlr-databaseToBeDestroyed

the drawing database is about to be deleted


:vlr-commandWillStart

a command is about to start


:vlr-commandEnded

a command has finished


:vlr-commandCancelled

a command was cancelled


:vlr-commandFailed

a command has failed completion


:vlr-unknownCommand

an unknown command was entered


:vlr-lispWillStart

a Lisp expression is about to be evaluated


:vlr-lispEnded

a Lisp expression evaluation has finished


:vlr-lispCancelled

a Lisp expression  evaluation was cancelled


:vlr-beginDwgOpen

a dwg file is about to be opened


:vlr-endDwgOpen

a dwg file has been loaded


:vlr-dwgFileOpened

a dwg file was opened as editor document


:vlr-beginSave

a dwg file is about to be saved


:vlr-saveComplete

a dwg save operation has been completed


: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 editor reactor object - #<VLR-Editor-Reactor>
args : (list) contains 0-2 arguments, depending on the particular event :


:vlr-lispEnded
:vlr-lispCancelled
:vlr-beginDxfIn
:vlr-dxfInComplete
:vlr-abortDxfIn
:vlr-beginDxfOut
:vlr-dxfOutComplete
:vlr-abortDxfOut
:vlr-beginClose
:vlr-databaseToBeDestroyed

0 arguments


:vlr-commandWillStart
:vlr-commandEnded
:vlr-commandCancelled
:vlr-commandFailed
:vlr-unknownCommand

1 argument (string)
the command name


:vlr-lispWillStart

1 argument (string)
the first line of the Lisp expression to be evaluated


:vlr-beginDwgOpen
:vlr-endDwgOpen
:vlr-dwgFileOpened

1 argument (string)
the name of the dwg file


:vlr-sysVarWillChange

1 argument (string)
the name of the system variable


:vlr-beginSave

2 arguments
1st argument : database (VLA-Object)
2nd argument : string, intended name for the dwg file


:vlr-saveComplete

2 arguments
1st argument : database (VLA-Object)
2nd argument : string, name used for saving the dwg file


: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-Editor-Reactor> or NIL

Example


Remarks




©  Bricsys NV. All rights reserved.