Iterate Workspaces (ModelBuilder)

Summary

Iterates over workspaces in a folder.

Learn how Iterate Workspaces works in ModelBuilder

Usage

Syntax

IterateWorkspaces_mb (in_folder, {wildcard}, {workspace_type}, {recursive})
ParameterExplanationData Type
in_folder

Folder which stores the workspace to iterate.

Folder
wildcard
(Optional)

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 (e.g., A* or Ari* or Land*,and so on).

String
workspace_type
(Optional)

Choose the Workspace Type, such as Access, Coverage, FileGDB, Folder, or SDE.

  • ACCESSOnly Access database will be the output.
  • COVERAGEOnly Coverage will be the output.
  • FILEGDBOnly File Geodatabase will be the output.
  • FOLDEROnly Folder will be the output.
  • SDEOnly SDE database will be the output.
String
recursive
(Optional)

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

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

Environments

This tool does not use any geoprocessing environments

Related Topics

Licensing Information

ArcView: Yes
ArcEditor: Yes
ArcInfo: Yes

4/27/2011