I am very new at Python,I'm not sure if this is even the appropriate way to do what I want to do, but basically, I'm looking to eliminate all of the small polygons in a feature class that was created to show all of the watershed basins of an area. I will need to run the Eliminate tool multiple times to eliminate all polygons smaller than an acre (since sometimes the tool will combine 2 small polygons and they still end up being less than an acre). Right now I can run the eliminate tool once with:
arcpy.management.MakeFeatureLayer(basinFC,basinLYR) arcpy.management.SelectLayerByAttribute(basinLYR,"NEW_SELECTION","Acres < 1") arcpy.management.Eliminate(basinLYR,basin_elim)
Since I've never used a loop in Python before, I'm not sure which to use or where to place it.