API Reference > OdDb Classes > OdDbObjectIterator Class
OdDbObjectIterator Class
OdDbObjectIterator
Syntax
C++
class OdDbObjectIterator : public OdRxObject;

DbObjectIterator.h

This class defines bidirectional Iterator objects that traverse entities contained in complex entities. 

OdDbBlock Table Records in an OdDbDatabase instance.

Complex entities include the following: 

 

Entity 
Iterated entities 
OdDbBlockReference 
All 
OdDb2dPolyline 
Vertex 
OdDb3dPolyline 
Vertex 
OdDbPolyFaceMesh 
Vertex 
OdDbPolygonMesh 
Vertex 

 

This class cannot directly instantiated, but must be instantiated with the iterator creation methods of the class to be iterated through. 

 

 
Name 
Description 
 
 
 
Name 
Description 
 
done 
Returns true if and only if the traversal by this Iterator object is complete. 
 
Opens and returns the entity currently referenced by this Iterator object.
 
 
Returns the Object ID of the entity currently referenced by this Iterator object. 
 
 
 
seek 
This is the overview for the seek method overload. 
 
Sets this Iterator object to reference the entity that it would normally return first. 
 
step 
Steps this Iterator object.
 
Copyright © 2002–2021. Open Design Alliance. All rights reserved.