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

AcDbCompoundObjectId(
    const AcDbObjectId& id, 
    const AcDbObjectIdArray& path, 
    AcDbDatabase* pHostDatabase = NULL
);
Parameters
Parameters 
Description 
const AcDbObjectId& id 
Input AcDbObjectId of the AcDbObject that this AcDbCompoundObjectId is going to reference. 
const AcDbObjectIdArray& path 
Input path of AcDbBlockRefrences that lead to the referenced object. The first AcDbBlockReference in the path resides in the host database, the second AcDbBlockReference is from the AcDbBlockTableRecord that the first AcDbBlockReference references, the third AcDbBlockReference is from the AcDbBlockTableRecord that the second AcDbBlockReference references, etc. 
AcDbDatabase* pHostDatabase = NULL 
Input host database. If NULL, the database is taken from the first AcDbBlockReference id in the path (even if it is in XREF database). 
Description

Creates an AcDbCompoundObjectId object from an ordinary AcDbObjectId and a path of AcDbBlockReferences. If the host database is NULL, the host database is obtained from the first id in the path. Even if it is in the XREF database, the database hosting the XREF is obtained. 

 

Links