Iterate Datasets (ModelBuilder)

Summary

Iterates over datasets in a workspace or feature dataset.

Learn how Iterate Datasets works in ModelBuilder

Usage

  • This tool is intended for use in ModelBuilder, not in Python scripting.

  • The tool has two outputs: Dataset and Name which could be used as inline variable (e.g. %Name%) in other tools.

Parameters

LabelExplanationData Type
Workspace or Feature Dataset

Workspace or a feature dataset which stores the dataset to iterate.

Workspace; Feature Dataset
Wildcard
(Optional)

A combination of * and characters that help to limit the results. The asterisk is the same as saying ALL. If no wildcard is specified, all inputs will be returned. For example, it can be used to restrict Iteration over input names starting with a certain character or word (for example, A* or Ari* or Land* and so on).

String
Dataset Type
(Optional)

The dataset type to iterate over.

  • Computer Aided Design (CAD)Only CAD dataset will be the output.
  • FeatureOnly Feature dataset will be the output.
  • Geometric NetworkOnly Geometric Network dataset will be the output.
  • MosaicOnly Mosaic dataset will be the output.
  • NetworkOnly Network dataset will be the output.
  • Parcel FabricOnly Parcel Fabric dataset will be the output.
  • RasterOnly Raster dataset will be the output.
  • TerrainOnly Terrain dataset will be the output.
  • Triangular Irregular Networks (TIN)Only TIN dataset will be the output.
  • TopologyOnly Topology dataset will be the output.
String
Recursive
(Optional)

Determines if subfolders in the input workspace will be iterated through recursively.

  • Checked—Will iterate through all subfolders.
  • Unchecked—Will not iterate through all subfolders.
Boolean

Derived Output

LabelExplanationData Type
Dataset

The full path to the dataset.

Dataset
Name

The name of the dataset.

String

Environments

This tool does not use any geoprocessing environments.

Licensing information

  • Basic: Yes
  • Standard: Yes
  • Advanced: Yes