I work with ArcGIS 10.3 (Python 2.7.8) and I need to change the grid interval in 70 MXD's.
I tried to find Python code that can do it. Currently, the interval in each MXD is 200 meters and I need to change it to 750 meters.
I work with ArcGIS 10.3 (Python 2.7.8) and I need to change the grid interval in 70 MXD's.
I tried to find Python code that can do it. Currently, the interval in each MXD is 200 meters and I need to change it to 750 meters.
You are encountering the same software limitation that is described at Altering graticule intervals logically in varying map scales using ArcPy and/or Data Driven Pages? in a different context.
I recommend that you upvote the ArcGIS Idea that Reference grids/graticules should be accessible to arcpy.mapping.
ArcGIS 10.4 Pre-release for Desktop and ArcGIS Pro 1.2 Beta have very recently been announced as available so I plan to check both arcpy.mapping
and arcpy.mp
for this functionality.
If it is not available in ArcGIS Pro we will need to create a separate ArcGIS Idea for that. I think there is a much better chance of this being addressed in ArcGIS Pro than in the ArcGIS 10.x architecture.
I use a simple, free macro recorder called Tinytask to help automate things not scriptable in arcpy. Tinytask records keyboard and mouse input that you can play back. There is no install, just download tinytask.exe from vTaskStudio.com and run. I am not affiliated with this software, just a happy customer.