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-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:
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-reactions returns the callback list of condition-function pairs of the specified reactor. The following example returns information about circleReactor: