Constructs an editor reactor object that notifies of an event related to writing a block
(vlr-wblock-reactor data callbacks)
Arguments
nil if no data.
Any AutoLISP data to be associated with the reactor object; otherwiseA list of pairs of the following form:
(event-name . callback_function)
where event-name is one of the symbols listed in the âWblock 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 âWblock reactor callback dataâ table.
Return Values
The reactor_object argument.
Wblock reactor events |
|
---|---|
Event name |
Description |
:VLR-wblockNotice |
A wblock operation is about to start. |
:VLR-beginWblockPt |
A wblock operation is being performed on a set of entities. |
:VLR-beginWblockId |
A wblock operation is being performed on a specified block. |
:VLR-beginWblock |
A wblock operation is being performed on an entire database. Notification does not occur until all the entities in the source database's model space are copied into the target database. |
:VLR-endWblock |
A wblock operation completed successfully. |
:VLR-beginWblockObjects |
wblock has just initialized the object ID translation map. |
â
Wblock reactor callback data |
||
---|---|---|
Name |
List length |
Parameters |
:VLR-wblockNotice |
1 |
Database object (VLA-object) from which the block will be created. |
:VLR-beginWblockPt |
3 |
First parameter is the target database object (VLA-object). Second parameter is the source database object (VLA-object) containing the objects being wblocked. Third parameter is a 3D point list (in WCS) to be used as the base point in the target database. |
:VLR-beginWblockId |
3 |
First parameter is the target database object (VLA-object). Second parameter is the source database object (VLA-object) containing the objects being wblocked. Third parameter is the object ID of the BlockTableRecord being wblocked. |
:VLR-beginWblock :VLR-otherWblock |
2 |
First parameter is the target database object (VLA-object). Second parameter is the source database object (VLA-object) containing the objects being wblocked. |
:VLR-abortWblock :VLR-endWblock |
1 |
The target database object (VLA-object). |
:VLR-beginWblockObjects |
2 |
First parameter is the source database object (VLA-object) containing the objects being wblocked. Second parameter is an ID map. |