vlr-miscellaneous-reactor

AutoCad AutoLISP Functions

 
vlr-miscellaneous-reactor
 
 
 

Constructs an editor reactor object that does not fall under any other editor reactor types

(vlr-miscellaneous-reactor data callbacks)

Arguments

data

Any AutoLISP data to be associated with the reactor object; otherwise nil if no data.

callbacks

A list of pairs of the following form:

(event-name . callback_function)

where event-name is one of the symbols listed in the “Miscellaneous reactor events” table below, 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 of extra data elements associated with the particular event. The contents of this list for particular events are shown in the “Miscellaneous reactor callback data” table.

Return Values

The reactor_object argument.

Miscellaneous reactor events

Event name

Description

:vlr-pickfirstModified

The pickfirst selection set of the current document has been modified.

:vlr-layoutSwitched

The layout was switched.

Miscellaneous reactor callback data

Name

List length

Parameters

:vlr-pickfirstModified

0

 

:vlr-layoutSwitched

1

A string naming the layout switched to.