ACDBCORE2D_PORT AcDbCompoundObjectId( const AcDbObjectId& id, const AcDbObjectIdArray& path, AcDbDatabase* pHostDatabase = NULL );
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.
Parameters | Description |
---|---|
id | Input AcDbObjectId of the AcDbObject that this AcDbCompoundObjectId is going to reference. |
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. |
pHostDatabase | Input host database. If NULL, the database is taken from the first AcDbBlockReference id in the path (even if it is in XREF database). |