Frequently asked question

Is it possible to rename output feature layers in batches to match the names of input layers during analysis?

Last Published: April 25, 2020


Yes, it is possible to rename the output layers in batches to match the names of input layers. The most efficient method is the inline variable substitution technique through Model Builder by iterating items to apply the input file name as the output feature class name.

For example, the Raster to Polygon tool is capable of converting rasters to polygons in a batch, but is unable to rename the output polygon features in batches as the raster names cannot be recognized. In this case, each output needs to be renamed manually, which can be time consuming when it involves large volumes.

To rename the output feature layers in batches to match the input feature layer names, do the following:

  1. In ArcMap, navigate to Geoprocessing, and click ModelBuilder.

    Image of the context menu
  2. Setup the workspace by adding the relevant datasets.

    Image of the model builder workspace
  3. Connect the dataset to the Iterate function added to the model. In this example, the Iterate Rasters function is used.

    Image of the iterate tool
  4. Add and connect any desired tool to the model. This can be done by dragging and dropping the relevant tool from ArcMap into the ModelBuilder workspace.

    Image of the tools added to Model Builder
  5. Right-click the output model and use the inline variable substitution technique as described in ArcGIS Help: Examples of inline model variable substitution.

    For example:

    Image sample of inline variable substitution
  6. Define the remaining settings as needed.
  7. Click OK and run the model.

Article ID:000017699

  • ArcGIS Pro
  • ArcMap

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options

Related Information

Discover more on this topic