C++
ACDBCORE2D_PORT Acad::ErrorStatus appendAcDbEntity( AcDbObjectId& pOutputId, AcDbEntity* pEntity );
Description
This function adds pEntity to the database and the block table record. If the operation is successful, then pOutputId is set to the AcDbObjectId of the newly added entity.
If pEntity points to an AcDbAttributDefinition entity, then the block table record's hasAttributeDefinitions flag will be set to true.
Returns Acad::eOk if successful. If pEntity does not point to an object of a class derived from AcDbEntity (either directly or indirectly), then Acad::eNotAnEntity will be returned.
Parameters
| Parameters | Description |
|---|---|
| pOutputId | Returns the object ID of the appended entity |
| pEntity | Input pointer to entity to append (must not be NULL) |