Collect Values (ModelBuilder)
Summary
The Collect Values tool is designed to collect output values of an iterator or to convert a list of multivalues into a single input. The output of Collect Values can be used as input to tools like Merge, Append, Mosaic, and Cell Statistics.
Usage
-
This tool is intended for use in ModelBuilder and not in Python scripting.
Tool outputs with the Add To Display option checked are added to the display in ArcMap using the variable name. If you are using an iterator in the model and want to add the outputs of all the iterations to display in ArcMap with the actual unique output name instead of the name of the variable, connect the output to be displayed to the Collect Value tool, then right-click the output of Collect Value, and check the Add To Display option. If the model will be run from the model tool dialog box, then make the output of Collect Value a model parameter, since only the output model parameters are added to display.
All the tools in ArcGIS are empty (without color) when added in a model except Collect Values and Merge Branch. Unlike other system tools, Collect Values is always in a ready-to-run state (colored in). This is because the input to Collect Values is a multiple value data type, and an empty multiple value is considered a valid input.
Syntax
Parameter | Explanation | Data Type |
in_value |
Input values to be collected. | Multiple Value |