VLISP
also provides functions to inspect a reactor definition from within
an application program, or at the Console prompt:
- vlr-type returns the
type of the specified reactor. For example:
$ (vlr-type circleReactor)
:VLR-Object-Reactor
- vlr-current-reaction-name returns
the name of the event that caused the callback function to be called.
- vlr-data returns
the application-specific data value attached to the reactor, as
shown in the following example:
$ (vlr-data circleReactor)
"Circle Reactor"
You can use this data
to distinguish among multiple reactors that can fire the same callback
function.
- vlr-owners returns
a list of the objects in an AutoCAD drawing that fire notifications
to an object reactor. The following function call lists the objects
that fire notifications to circleReactor:
_$ (vlr-owners circleReactor)
(#<VLA-OBJECT IAcadCircle 03ad077c>)
- vlr-reactions returns
the callback list of condition-function pairs of the specified reactor.
The following example returns information about circleReactor:
$ (vlr-reactions circleReactor)
((:vlr-modified . PRINT-RADIUS))