<?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: Why my python script doesnt create .sbn .sbx files in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/why-my-python-script-doesnt-create-sbn-sbx-files/m-p/1092842#M62187</link>
    <description>&lt;P&gt;Did you create any spatial indices?&lt;/P&gt;&lt;P&gt;&lt;A href="https://desktop.arcgis.com/en/arcmap/latest/manage-data/shapefiles/shapefile-file-extensions.htm" target="_blank"&gt;Shapefile file extensions—ArcMap | Documentation (arcgis.com)&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 26 Aug 2021 18:15:03 GMT</pubDate>
    <dc:creator>DanPatterson</dc:creator>
    <dc:date>2021-08-26T18:15:03Z</dc:date>
    <item>
      <title>Why my python script doesnt create .sbn .sbx files</title>
      <link>https://community.esri.com/t5/python-questions/why-my-python-script-doesnt-create-sbn-sbx-files/m-p/1092830#M62186</link>
      <description>&lt;P&gt;Why does my script not create a .sbn and .sbx file?&amp;nbsp; What do I need to change to make it create them?&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;import &lt;/SPAN&gt;arcgis&lt;BR /&gt;&lt;SPAN&gt;import &lt;/SPAN&gt;arcpy&lt;BR /&gt;&lt;SPAN&gt;from &lt;/SPAN&gt;arcpy &lt;SPAN&gt;import &lt;/SPAN&gt;env&lt;BR /&gt;arcpy.env.overwriteOutput = &lt;SPAN&gt;True&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;from &lt;/SPAN&gt;arcgis.gis &lt;SPAN&gt;import &lt;/SPAN&gt;GIS&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;###Variables&lt;BR /&gt;&lt;/SPAN&gt;AGOL_Login = GIS(&lt;SPAN&gt;"url"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"username"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"password"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;verify_cert&lt;/SPAN&gt;=&lt;SPAN&gt;False&lt;/SPAN&gt;)&lt;BR /&gt;itemToDownload = AGOL_Login.content.get(&lt;SPAN&gt;"b6451dd141bbbd89a0e0fc"&lt;/SPAN&gt;)&lt;BR /&gt;exportLoc = &lt;SPAN&gt;r"C:\Users\youknowit\Desktop\PROJECTS\Downloads"&lt;BR /&gt;&lt;/SPAN&gt;itemExportName_SHP = &lt;SPAN&gt;"test"&lt;BR /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;itemToDownload.export(itemExportName_SHP&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"Shapefile"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;None&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;True&lt;/SPAN&gt;)&lt;BR /&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;searchForExportedItem = AGOL_Login.content.search(itemExportName_SHP)&lt;BR /&gt;exportedItemID = searchForExportedItem[&lt;SPAN&gt;0&lt;/SPAN&gt;].id&lt;BR /&gt;getTheExportedItems = AGOL_Login.content.get(exportedItemID)&lt;BR /&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;getTheExportedItems.download(exportLoc)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Aug 2021 17:51:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/why-my-python-script-doesnt-create-sbn-sbx-files/m-p/1092830#M62186</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-08-26T17:51:27Z</dc:date>
    </item>
    <item>
      <title>Re: Why my python script doesnt create .sbn .sbx files</title>
      <link>https://community.esri.com/t5/python-questions/why-my-python-script-doesnt-create-sbn-sbx-files/m-p/1092842#M62187</link>
      <description>&lt;P&gt;Did you create any spatial indices?&lt;/P&gt;&lt;P&gt;&lt;A href="https://desktop.arcgis.com/en/arcmap/latest/manage-data/shapefiles/shapefile-file-extensions.htm" target="_blank"&gt;Shapefile file extensions—ArcMap | Documentation (arcgis.com)&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Aug 2021 18:15:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/why-my-python-script-doesnt-create-sbn-sbx-files/m-p/1092842#M62187</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2021-08-26T18:15:03Z</dc:date>
    </item>
    <item>
      <title>Re: Why my python script doesnt create .sbn .sbx files</title>
      <link>https://community.esri.com/t5/python-questions/why-my-python-script-doesnt-create-sbn-sbx-files/m-p/1093379#M62193</link>
      <description>&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/add-spatial-index.htm" target="_blank" rel="noopener"&gt;Add Spatial Index (Data Management)&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 29 Aug 2021 08:59:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/why-my-python-script-doesnt-create-sbn-sbx-files/m-p/1093379#M62193</guid>
      <dc:creator>Luke_Pinner</dc:creator>
      <dc:date>2021-08-29T08:59:15Z</dc:date>
    </item>
  </channel>
</rss>

