Share

AcDbDatabase::addAcDbObject

C++

ACDBCORE2D_PORT Acad::ErrorStatus addAcDbObject(
    AcDbObjectId& id, 
    AcDbObject* pObj
);

Description

Adds the object pointed to by pObj to the database, giving it a handle and an object ID. The new object ID is returned in the objId argument.

Note

This function does not establish ownership. If the object pointed to by pObj is not set up with an owner, then it will not be written out during a save, DXFOUT, or any other process that traverses the database ownership tree.

Returns Acad::eOk if object is successfully added to the database.

Parameters

Parameters Description
pObj Input pointer to object to be added to the database
objId Output new object ID obtained by this function

Links

AcDbDatabase Class

Was this information helpful?