C++
int approxNumObjects() const;
Description
This method returns a value that is at least as large as the number of objects in the database.
The purpose of this function is to provide a way to determine how large an AcDbObjectIdArray will be required in order to hold all the objects in the database. Thus the array can be created with the proper initial size instead of growing the array as the objects are appended. For large arrays, this can result in a very noticeable performance gain and greatly reduce memory fragmentation.