Iterate Feature Classes (ModelBuilder)

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

LabelExplanationData 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 * and characters that help to limit the results. The asterisk is the same as specifying ALL. If no wildcard is specified, all inputs will be returned. You can use this parameter to restrict iteration over input names starting with a certain character or word (for example, A* or Ari* or Land* and so on).

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.

  • AnnotationOnly annotation feature classes will be output.
  • DimensionOnly dimension feature classes will be output.
  • EdgeOnly edge feature classes will be output.
  • JunctionOnly junction feature classes will be output.
  • Line Only line feature classes will be output.
  • PointOnly point feature classes will be output.
  • PolygonOnly polygon feature classes will be output.
  • MultipatchOnly multipatch feature classes will be output.
String
Recursive
(Optional)

Specifies whether the iterator will iterate through all subfolders in the main workspace.

  • Checked—The iterator will iterate through all subfolders.
  • Unchecked—The iterator will not iterate through all subfolders.
Boolean

Derived Output

LabelExplanationData 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

Related topics