Hi Everyone
I have a Map Series that my user needs to run with (preferably) just the click of a button
I have tried automating the process using ModelBuilder but I couldn't quite make it work
I am using a Feature Layer on ArcGIS online, and generating a grid. The data changes and so the grid needs to be created every time the process is run
Is there a better way of doing this? Do I need to use ArcPy? Any help would be appreciated.
Many thanks
I would suspect that coding will be needed to automate this. The following samples under the Pro Python documentation might help here and provide some useful implementation examples
Hope that helps!
David
Thank you David. That's really helpful. I'll see if I can figure it out and report back....
I am in the midst of this right now. And hit a snag... (which is why I'm browsing the Community pages)
So far, I think ArcPy is sort-of enough. So far, the steps include the arcpy.mp class for the project, map, layer, and layout. Querying some of those along the way with the arcpy.da class. Alongside the def MakeRec_LL() function found in a few of the online tool examples. Then a stumbling into the weeds of the CIM (cartographic information model) to build the actual Spatial Map Series.
That's actually where I'm getting stuck. The units for the series' margin all seem to be interpreted as "percent of mapframe" even when I'm specifically telling it otherwise.
https://pro.arcgis.com/en/pro-app/3.2/arcpy/mapping/python-cim-access.htm#ESRI
https://github.com/Esri/cim-spec/blob/main/docs/v3/CIMLayout.md#cimspatialmapseries
Once I figure it out, I'll post a file here.