API Reference > OdDb Classes > OdDbBlockTableRecord Class > OdDbBlockTableRecord Methods > OdDbBlockTableRecord::getBlockReferenceIds Method
OdDbBlockTableRecord::getBlockReferenceIds Method
Syntax
C++
void getBlockReferenceIds(OdDbObjectIdArray& referenceIds, bool directOnly = true, bool forceValidity = false);
Parameters 
Description 
OdDbObjectIdArray& referenceIds 
[out] Receives the BlockReference Object ID's.  
bool directOnly = true 
[in] If true, returns only direct references.  
bool forceValidity = false 
[in] If true, forces the loading of partially loaded drawings. 

Returns the Object ID's of all OdDbBlockReference entities that reference this Block. 

 

If this Block is nested, references to the parent block(s) will be included if and only if directOnly is false. Older drawings do not explicitly store this information, and hence must be completely loaded.

getErasedBlockReferenceIds

Copyright © 2002–2020. Open Design Alliance. All rights reserved.