The AcDbObjectFilter class is the base class for creating object filters, and provides the following functions:
- Constructor/destructor - AcDbObjectFilter()/~AcDbObjectFilter()
- Filter objects - FilterObjects()
- Activate object filter - IsActive()/SetActive()
For
object-filters source-code samples, see
The AcDbBasicFilter class (derived from The AcDbObjectFilter) filters objects in the current drawing based on layer, feature-class, and block criteria, and provides the following functions:
- Constructor/destructor - AcDbBasicFilter() (two forms)/~AcDbBasicFilter()
- Filter objects - FilterObjects()
- Layer filters:
- Retrieve layers - Layers()
- Set layers - SetLayers() (two forms)
- Add layers - AddLayers()
- Clears layers - ResetLayers()
- Layer status - LayerStatusMask()/SetLayerStatusMask(). See also ELayerStatus enum.
- Feature-class filters:
- Retrieve feature classes - FeatureClasses()
- Set feature classes - SetFeatureClasses() (two forms)
- Add feature classes - AddFeatureClasses()
- Clears feature classes - ResetFeatureClasses()
- Block filters:
- Retrieve blocks - Blocks()
- Set blocks - SetBlocks() (two forms)
- Add blocks - AddBlocks()
- Clears blocks - ResetBlocks()
For
object-filters source-code samples, see
The AcDbObjectFilterGroup class (derived from The AcDbObjectFilter) filters objects in the current drawing based the based on the criteria of one or more listed filters, and provides the following functions:
- Constructor/destructor - AcDbObjectFilterGroup()/~AcDbObjectFilterGroup()
- Add filter - AddObjectFilter()
- Insert filter - InsertObjectFilter()
- Remove filter - RemoveObjectFilter()/RemoveAllObjectFilter()
- Count filters - ObjectFilterCount()
- Empty test - IsEmpty()
- Retrieve filter - GetObjectFilter()
- Filter objects - FilterObjects()
For
object-filters source-code samples, see
- For more information about object filters in AutoCAD Map 3D, choose Help > Autodesk Map Help > Index tab, and then type the keywords filters and queries to display the related topics.
To view code samples of object-filters functions, open the Samples folder in your AutoCAD Map 3D ObjectARX installation and navigate to Map Samples\ObjectFilter.
To view the object-filters classes, click the following links:
AcDbObjectFilter Class AcDbBasicFilter Class AcDbObjectFilterGroup Class