Running a batch in the Modelbuilder

230
2
03-05-2024 04:14 AM
DMM_SBB
New Contributor

I have been working on a project where I need to create new maps off of existing document numbers.

So far I have been doing this by putting in each document number individually then running it through my model and updating names wherever necessary.

However, I just heard that I might be expecting up to 700 of these document numbers, so I want to automate the process further.

For the new year, the data must be transformed and given a new document number, so I want to join a table containing all the current document numbers and their corresponding new numbers to the data and then run the whole thing as a batch where the modelbuilder automatically runs through the whole dataset per document number and automatically updates all the names to the new document number, but I am not quite sure how to do this as I have no proficiency with coding whatsoever, though if it isn't too complicated I am more than willing to try in order to make this project easier on myself

Is something like this possible and if so, how?

All tips are much appreciated!

Tags (2)
0 Kudos
2 Replies
DanPatterson
MVP Esteemed Contributor

are you looking to iterate files?

Iterate Files (ModelBuilder)—ArcGIS Pro | Documentation


... sort of retired...
0 Kudos
BobBooth1
Esri Contributor

You could make the table of old and new document numbers and use an iterator in ModelBuilder to cycle through each row and run the rest of your model, passing the values as variables, using inline variable substitution.

https://pro.arcgis.com/en/pro-app/latest/tool-reference/modelbuilder-toolbox/an-overview-of-the-mode...

https://pro.arcgis.com/en/pro-app/latest/help/analysis/geoprocessing/modelbuilder/inline-variable-su...

You could also do this with Python.

There is a free tutorial series here to help you get started with Python in ArcGIS Pro (although it is an introduction to data processing with Python, and does not touch on automating layouts).

https://learn.arcgis.com/en/paths/learn-python-in-arcgis-pro/

For automation of mapping (updating titles in layouts, for example), you might look at this Esri Academy course:

https://www.esri.com/training/catalog/57630437851d31e02a43f210/python-scripting-for-map-automation/

and this course:

https://www.esri.com/training/catalog/62f2c9763bbe253caee22dbb/python-scripting-modifying-map-series...

 

 

0 Kudos