Share

AcEditorReactor::otherWblock

C++

void otherWblock(
    AcDbDatabase*, 
    AcDbIdMapping&, 
    AcDbDatabase*
) override;

Description

This callback function indicates that a wblock operation is being performed on the drawing database pFrom. with pTo as the target. idMap contains a mapping of all the original objects in the pFrom database to all the objects which were copied into the pTo database.

This notification is sent right before beginDeepCloneXlation is sent. Both are sent after the wblock process completes copying the objects into the pTo database, but before the ID translation occurs. At this time it is possible to clone additional objects (such as dictionaries and objects that reside in dictionaries that would otherwise not be copied over) in the same way as during beginDeepCloneXlation notification.

beginDeepCloneXlation notification is sent for all deepClone operations, whereas otherWblock notification is only sent for wblock operations. If cloning additional objects only needs to be done for wblock, then the otherWblock notification may be used, instead of using beginDeepCloneXlation and checking the idMap's context flag to see what type of deepClone operation it is.

Parameters

Parameters Description
pTo Passed in pointer to target drawing database
idMap Passed in object ID map, which at this point contains the entire set of objects that have been operated on
pFrom Passed in pointer to source drawing database that contains the objects being wblocked

Links

AcEditorReactor Class

Was this information helpful?