API Reference > OdDb Classes > OdDbObjectIterator Class > OdDbObjectIterator Methods > OdDbObjectIterator::entity Method
OdDbObjectIterator::entity Method
Syntax
C++
virtual OdDbEntityPtr entity(OdDb::OpenMode openMode = OdDb::kForRead, bool openErasedEntity = false) = 0;
Parameters 
Description 
OdDb::OpenMode openMode = OdDb::kForRead 
[in] Mode in which to open the entity.  
bool openErasedEntity = false 
[in] If and only if true, erased records will be opened or retrieved. 

Returns a SmartPointer to the opened entity if successful, otherwise a null SmartPointer.

Opens and returns the entity currently referenced by this Iterator object. 

 

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