Iterate Workspaces (ModelBuilder)

Summary

Iterates over workspaces in a folder.

Learn how Iterate Workspaces works in ModelBuilder

Usage

  • This tool is only available from the ModelBuilder ribbon for use in models. The tool is not available from the Geoprocessing pane or from Python.

  • The tool has two outputs: Workspace and Name which could be used as inline variable %Name% in other tools.

Parameters

LabelExplanationData Type
Folder

The folder which stores the workspace to iterate.

Folder
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. 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
Workspace Type
(Optional)

Specifies the workspace type to find.

  • File geodatabaseOnly file geodatabases will be the output.
  • FolderOnly folders will be the output.
  • Enterprise geodatabaseOnly enterprise geodatabases will be the output.
  • BIMOnly BIM workspaces will be the output.
String
Recursive
(Optional)

Specifies if subfolders in the main folder will be iterated through recursively.

  • Checked—Will iterate through all subfolders.
  • Unchecked—Will not iterate through all subfolders. This is the default.
Boolean

Derived Output

LabelExplanationData Type
Workspace

The full path to the workspace.

Workspace
Name

The name of the workspace.

String

Environments

This tool does not use any geoprocessing environments.

Licensing information

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

Related topics