AcDbCompoundObjectId::AcDbCompoundObjectId Constructor (AcDbObjectId&, AcDbDatabase*)   

AcDbCompoundObjectId(
    const AcDbObjectId& id, 
    AcDbDatabase* pHostDatabase = NULL
);
Parameters
Parameters 
Description 
const AcDbObjectId& id 
Input AcDbObjectId of the AcDbObject that this AcDbCompoundObjectId is going to reference. 
AcDbDatabase* pHostDatabase = NULL 
Input the host database. If NULL, the database is taken from the AcDbObjectId (even if it is in the XREF database). 
Description

Creates an AcDbCompoundObjectId object from an ordinary AcDbObjectId. If the host database is NULL, the host database is obtained from the given AcDbObjectId. Even if it is in the XREF database, the database hosting the XREF is obtained.

Links