I am trying to use the Grid Index Features to generate a grid based on scale and extent. I want to dynamically determine the number of rows and columns, just like the tool dialog does. Is there anyway to calculate these values dynamically based on the extent and scale?
Here is the Python code I am trying to use. However, no matter what I try, the number of rows and columns defaults to 10.