C++
void beginInsert( AcDbDatabase*, const ACHAR*, AcDbDatabase* ) override;
Description
This callback function indicates that the drawing database pFrom is being added to the drawing database pTo as a block with the name pBlockName. It is triggered by the INSERT command, or if the equivalent of pTo->insert(blockId, pBlockName, pFrom) is called.
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::beginInsert notification is not sent.
Parameters
| Parameters | Description |
|---|---|
| pTo | Passed in pointer to the target drawing database |
| pBlockName | Passed in string of the name of the block being inserted |
| pFrom | Passed in pointer to the source drawing database which contains the objects being inserted |