vlr-linker-reactor
 
 
 

Constructs a reactor object that notifies your application every time an ObjectARX application is loaded or unloaded

(vlr-linker-reactor data callbacks)

Arguments

data

Any AutoLISP data to be associated with the reactor object.

callbacks

A list of pairs of the following form:

(event-name . callback_function)

where event-name is one of the symbols listed in the “Linker reactor events” table, and callback_function is a symbol representing a function to be called when the event fires. Each callback function accepts two arguments:

reactor_object The VLR object that called the callback function.

list A list containing the name of the ObjectARX program that was loaded or unloaded (a string).

Return Values

The reactor_object argument.

Linker reactor events

Name

Event

:vlr-rxAppLoaded

The dynamic linker has loaded a new ObjectARX program. The program has finished its initialization.

:vlr-rxAppUnLoaded

The dynamic linker has unloaded an ObjectARX program. The program already has done its clean-up.

Examples

_$ (vlr-linker-reactor nil 
   '((:vlr-rxAppLoaded
. my-vlr-trace-reaction)))
#<VLR-Linker-Reactor>