<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Is it possible to use the grid index tool from a python script? in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/is-it-possible-to-use-the-grid-index-tool-from-a/m-p/1541977#M88568</link>
    <description>&lt;P&gt;Have you read the &lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/cartography/grid-index-features.htm#ESRI_USAGES_7EF6E6C4E7B14B388CA4F4443CA690D4" target="_self"&gt;usage&lt;/A&gt; section of the tool help? That explains how the tool functions under what scenarios.&lt;/P&gt;</description>
    <pubDate>Tue, 24 Sep 2024 15:23:58 GMT</pubDate>
    <dc:creator>DuncanHornby</dc:creator>
    <dc:date>2024-09-24T15:23:58Z</dc:date>
    <item>
      <title>Is it possible to use the grid index tool from a python script?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/is-it-possible-to-use-the-grid-index-tool-from-a/m-p/1541080#M88527</link>
      <description>&lt;P&gt;I have the following code to try to create a grid index. I want to be able to add in a scale field. However, whatever layout I have open, it doesn't seem to be picking up the page units. It ends up creating one huge index page (over 70 miles in height)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;Layer = arcpy.GetParameterAsText(0)
Scale = arcpy.GetParameterAsText(1)
out_location = arcpy.GetParameterAsText(2) 
arcpy.cartography.GridIndexFeatures(out_feature_class=out_location+"//index", in_features=Layer, use_page_unit="USEPAGEUNIT", polygon_width = "9.88", polygon_height= "13.62", scale = Scale, intersect_feature = "INTERSECTFEATURE")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Sep 2024 21:34:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/is-it-possible-to-use-the-grid-index-tool-from-a/m-p/1541080#M88527</guid>
      <dc:creator>rescobar</dc:creator>
      <dc:date>2024-09-20T21:34:50Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to use the grid index tool from a python script?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/is-it-possible-to-use-the-grid-index-tool-from-a/m-p/1541977#M88568</link>
      <description>&lt;P&gt;Have you read the &lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/cartography/grid-index-features.htm#ESRI_USAGES_7EF6E6C4E7B14B388CA4F4443CA690D4" target="_self"&gt;usage&lt;/A&gt; section of the tool help? That explains how the tool functions under what scenarios.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2024 15:23:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/is-it-possible-to-use-the-grid-index-tool-from-a/m-p/1541977#M88568</guid>
      <dc:creator>DuncanHornby</dc:creator>
      <dc:date>2024-09-24T15:23:58Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to use the grid index tool from a python script?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/is-it-possible-to-use-the-grid-index-tool-from-a/m-p/1557626#M90058</link>
      <description>&lt;P&gt;I was able to resolve this by just specifying inches (dimensions of my mapframe in the layout) as the unit:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;Layer = arcpy.GetParameterAsText(0)
Scale = arcpy.GetParameterAsText(1)
out_location = arcpy.GetParameterAsText(2) 
arcpy.cartography.GridIndexFeatures(out_feature_class=out_location+"//index.shp", in_features=Layer, use_page_unit="NO_USEPAGEUNIT", polygon_width = "9.88 inches", polygon_height= "13.62 inches", scale = Scale, intersect_feature = "INTERSECTFEATURE")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Nov 2024 16:53:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/is-it-possible-to-use-the-grid-index-tool-from-a/m-p/1557626#M90058</guid>
      <dc:creator>rescobar</dc:creator>
      <dc:date>2024-11-12T16:53:34Z</dc:date>
    </item>
  </channel>
</rss>

