HOW TO

Package multiple map documents in a single run in ArcGIS Pro

Last Published: July 19, 2023

Summary

There are several ways to package multiple maps from a single ArcGIS Pro project to share them with others, including using ModelBuilder, Python, or a script tool. This article describes the steps to package multiple maps using ModelBuilder.

Procedure

Create the model using the following steps:

  1. From the Analysis group, navigate to the ModelBuilder tab, and from the Insert group, click the Create Variable icon. Variable
  2. Set the Variable Data Type to Map and check the Multiple values option, then click OK.
  3. From the Insert menu, add the Iterate Multivalue iterator to the model and connect the Multiple Value variable as the input to the iterator.
  4. From the Tools Tools menu in the Insert group, add the Package Map tool.
  5. Delete the Input Map connected to the Package Map tool and connect the Value output of the Iterate Multivalue iterator as the input of the Package Map tool instead.
  6. If the output files must have the same name as the maps, use the in-variable concept.
    1. Double click the Output File at the end of the model, then click the browse button.
    2. Navigate to the location where the output files should be saved and type %Value% in the Name field and click Save.
Browse to the location where the files should be saved and set the name to %Value%
  1. Click OK.
  1. Click the Multiple Value variable at the beginning of the model. In the Multiple Value: Map pop-up window, click the Add Many drop-down arrow, select the maps to be packaged, and click Add. Click OK.
Select the maps to be packaged in the Multiple Value variable.
Note:
To ensure the model runs smoothly, double click the Package Map tool and check that the only Input Map is "Value." Delete any others.
  1. Check that the model looks like the image below. Validate and run the model. The model packages the input maps one at a time during a single run.
Note: 
This model can also be used in ArcMap, but while adding the variable, select the variable data type ArcMap Document. Also, if using Python, follow the code sample PackageMap example 2 (stand-alone script) mentioned in ArcMap: Package Map. This code sample is applicable when using ArcMap.

Article ID: 000024279

Software:
  • ArcGIS Pro

Receive notifications and find solutions for new or common issues

Get summarized answers and video solutions from our new AI chatbot.

Download the Esri Support App

Related Information

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options