<?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 Index creation on a shapefile in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/index-creation-on-a-shapefile/m-p/852093#M4298</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to add an index to a field in a shapefile. I know that i can get all existing indexes through&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN style="color: #2b91af;"&gt;IReadOnlyList&lt;/SPAN&gt;&amp;lt;&lt;SPAN style="color: #2b91af;"&gt;Index&lt;/SPAN&gt;&amp;gt; idd = featClassDefinition.GetIndexes();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but i haven't been able to find a proper way to add a new index to a field. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help me?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Davide&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 Jul 2016 07:54:48 GMT</pubDate>
    <dc:creator>DavideLimosani</dc:creator>
    <dc:date>2016-07-26T07:54:48Z</dc:date>
    <item>
      <title>Index creation on a shapefile</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/index-creation-on-a-shapefile/m-p/852093#M4298</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to add an index to a field in a shapefile. I know that i can get all existing indexes through&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN style="color: #2b91af;"&gt;IReadOnlyList&lt;/SPAN&gt;&amp;lt;&lt;SPAN style="color: #2b91af;"&gt;Index&lt;/SPAN&gt;&amp;gt; idd = featClassDefinition.GetIndexes();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but i haven't been able to find a proper way to add a new index to a field. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help me?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Davide&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jul 2016 07:54:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/index-creation-on-a-shapefile/m-p/852093#M4298</guid>
      <dc:creator>DavideLimosani</dc:creator>
      <dc:date>2016-07-26T07:54:48Z</dc:date>
    </item>
    <item>
      <title>Re: Index creation on a shapefile</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/index-creation-on-a-shapefile/m-p/852094#M4299</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First of all, there are some restrictions in with shapefiles when creating attribute indexes (see help Pro: &lt;A href="https://pro.arcgis.com/en/pro-app/tool-reference/data-management/add-attribute-index.htm" title="https://pro.arcgis.com/en/pro-app/tool-reference/data-management/add-attribute-index.htm"&gt;Add Attribute Index—Data Management toolbox | ArcGIS for Desktop&lt;/A&gt; &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;EM&gt;Shapefiles don't support multiple indexes, so additional fields will become part of a composite index (that is, an index created on multiple fields in a table).&lt;/EM&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;The GetIndexes will yield a readonly list to with the index position of field. see:&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/sdk/api-reference/index.html#topic7510.html" title="https://pro.arcgis.com/en/pro-app/sdk/api-reference/index.html#topic7510.html"&gt;ArcGIS Pro 1.3 API Reference Guide&lt;/A&gt; This is not the same as an attribute index. I suppose you can use the tool Add Attribute Index to create the index. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jul 2016 12:11:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/index-creation-on-a-shapefile/m-p/852094#M4299</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2016-07-26T12:11:00Z</dc:date>
    </item>
    <item>
      <title>Re: Index creation on a shapefile</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/index-creation-on-a-shapefile/m-p/852095#M4300</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you so much Xander, it was very helpful. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reading your answer another small question comes to my mind. With arcobjects i have never had the necessity to use tools inside my c# code, because all functionalities were available inside arcobjects. Now i see that in proObjects some basic functionality, like adding an index, are just available with tools. Is this just a temporary condition or it is a long run choice?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Davide&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jul 2016 08:04:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/index-creation-on-a-shapefile/m-p/852095#M4300</guid>
      <dc:creator>DavideLimosani</dc:creator>
      <dc:date>2016-07-29T08:04:25Z</dc:date>
    </item>
    <item>
      <title>Re: Index creation on a shapefile</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/index-creation-on-a-shapefile/m-p/852096#M4301</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good question! I wish I had a good answer for you...&amp;nbsp; One thing for sure is that the object model for Pro will not be as fine grained as ArcObjects is. ArcGIS Pro implements a new vision, where task, tools and for instance automation using arcpy.mp are the new way to go (see also &lt;A href="https://github.com/Esri/arcgis-pro-sdk/wiki/FAQ" title="https://github.com/Esri/arcgis-pro-sdk/wiki/FAQ"&gt;FAQ · Esri/arcgis-pro-sdk Wiki · GitHub&lt;/A&gt;​ ). It is still in development, but it is and always will be very different from what ArcObjects is. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jul 2016 11:57:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/index-creation-on-a-shapefile/m-p/852096#M4301</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2016-07-29T11:57:57Z</dc:date>
    </item>
  </channel>
</rss>

