Share

AcDbIndex

Class Hierarchy

AcRxObject
    AcGiDrawable
        AcDbObject
            AcDbIndex
                AcDbLayerIndex
                AcDbSpatialIndex

C++

class AcDbIndex : public AcDbObject;

File

dbindex.h

Description

This is the base class for Index objects. AcDbSpatialIndex and AcDbLayerIndex derive from this class.

Keeping the index up-to-date is achieved through the AcDbIndexFilterManager::updateIndexes() call explicitly invoked (either by an application or AutoCAD)

The AcDbFilteredBlockIterator will serve as the means to visit all the AcDbObjectIds that are "hits" from the query defined by the AcDbFilter passed to its constructor. For example, in the Spatial index case, the AcDbSpatialFilter object instance passed to the newIterator() method will define a query region. The AcDbSpatialIndex object, through its newIterator() method, will provide an AcDbSpatialIndexIterator that will return IDs that correspond to entities that fit within the query volume.

Notes

When using indexes, make sure the INDEXCTL system variable is set to the appropriate value. See the System Variables section of the AutoCAD Command Reference for information on INDEXCTL.

Links

AcDbIndex Methods

See Also

AcDbIndexFilterManager

Was this information helpful?