C++
void otherInsert( AcDbDatabase*, AcDbIdMapping&, AcDbDatabase* ) override;
Description
This callback function indicates that the drawing database pFrom has been added to the drawing database pTo and idMap contains a mapping of all the original objects in the pFrom database to all the objects which have been copied into the pTo database.
This notification is sent right before beginDeepCloneXlation is sent. Both are sent after the insert process completes copying the objects into the pTo database, but before the ID translation occurs and before any entity transformation occurs (due to the xform matrix used if entities are being inserted directly into Model Space, or adjustment for the pFrom insbase value if going into a user-defined BlockTableRecord).
So, at the time of this notification, 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 otherInsert notification is only sent for Insert operations. So, if cloning additional objects only needs to be done for Insert, then otherInsert may be used instead of using beginDeepCloneXlation or checking the idMap's context flag to see what type of deepClone operation it is.
Note: In the context of the AutoCAD INSERT command, the "insert" process that this notification deals with is strictly the operation of importing objects from a drawing file on disk into the drawing currently in the AutoCAD editor. So, if the INSERT command is inserting a block that is already in the drawing, then no importation process occurs and the AcEditor::otherInsert notification is not sent (nor is the beginDeepCloneXlation).
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 which contains the objects being inserted |