I set up a model in ArcGIS 10.4.1 ModelBuilder to use the Eliminate tool. Searching around to do it led me to Select by Attributes in Model Builder and Eliminate in Arcpy, but it just wont work.
I'm doing the following:
- Create a polygon shapefile
- Calculate area for each feature
- Make Feature Layer to select only features that are below a given size (this I found I have to do, since there is no tool for Select by Attribute)
- Run Eliminate
This is a snapshot of the model I set up:
Each time, the model stops when trying to start Eliminate, saying:
Failed to execute. Parameters are not valid. ERROR 000156: Input must be a feature class
The tool needs a feature class with a selection, so I think I'm missing something when trying to select the features.
I use an iterator to run this without letting the intermediate products load into ArcGIS.
Is it possible that this causes the problem, since ArcGIS is not aware of the layer?
SOLUTION: That was it. Must add Make Feature Layer without any parameter, followed by Select Layer By Attribute.