Iterate Feature Classes (Model Tools)
Summary
Iterates over feature classes in a workspace or feature dataset.
Learn more about how Iterate Feature Classes works in ModelBuilder
Usage
This tool is only available from ModelBuilder for use in models. The tool is not available from the Geoprocessing pane or from Python.
When this tool is used in a model, the first feature class is used as a template for the output. This allows for selection of fields in subsequent tools.
This tool iterates over the input data in the order it was created.
The tool has two outputs, Feature Class and Name, that can be used as inline variable (for example,
%Name%) in other tools.
Parameters
| Label | Explanation | Data type |
|---|---|---|
|
Workspace or Feature Dataset |
The workspace or feature dataset where the feature classes that will be iterated are stored. If you provide a geodatabase as the input workspace, only the feature classes directly under the geodatabase will be iterated (stand-alone feature classes). To iterate over all feature classes in a dataset located in the input geodatabase, check the Recursive parameter. |
Workspace; Feature Dataset |
|
Wildcard (Optional) |
A combination of |
String |
|
Feature Type (Optional) |
Specifies the feature type that will be used as a filter. Only features of the specified type will be output. When no feature type is specified, all features will be output.
|
String |
|
Recursive (Optional) |
Specifies whether the iterator will iterate through all subfolders in the main workspace.
|
Boolean |
Derived output
| Label | Explanation | Data type |
|---|---|---|
|
Feature Class |
The full path to the feature class. |
Feature Class |
|
Name |
The name of the feature class. |
String |
Environments
This tool does not use any geoprocessing environments.
Licensing information
- Basic: Yes
- Standard: Yes
- Advanced: Yes