More

Select by attributes from a series of feature classes

Select by attributes from a series of feature classes


I have 16 feature classes. What I want to do is to select by attributes each feature class using this statement:

"Shape_Area" < 1100

Is there a way to do this by batch using arcpy or arcpy.mapping? I can't find the right module for "Select by Attributes".


SelectLayerByAttribute_management is available in arcpy. You may need to make a feature layer if you're not in a mapping session. From the second example at the link:

arcpy.SelectLayerByAttribute_management("lyr", "SUBSET_SELECTION", ' "population" > 10000 ')

Watch the video: How to Select Features by Attributes in ArcMap Tutorial