<?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 Generating parameter lists for tools in Arc10 in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/generating-parameter-lists-for-tools-in-arc10/m-p/639464#M17205</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am trying to create a custom tool in AcrMap 10 that baically allows me to do a select by attribute within the tool.&amp;nbsp; I have a database of river features and want to select features using the river name listed in a column in the attribute table.&amp;nbsp; I can get the tool to the point where, when run, it will prompt me for river name and I can manually type it in and that works, but is there a way to populate a list of options for the parameter so I don't have to know the exact form of the river name to use the tool?&amp;nbsp; Any help would be appreciated.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Nov 2011 18:16:06 GMT</pubDate>
    <dc:creator>TylerQuick</dc:creator>
    <dc:date>2011-11-09T18:16:06Z</dc:date>
    <item>
      <title>Generating parameter lists for tools in Arc10</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/generating-parameter-lists-for-tools-in-arc10/m-p/639464#M17205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am trying to create a custom tool in AcrMap 10 that baically allows me to do a select by attribute within the tool.&amp;nbsp; I have a database of river features and want to select features using the river name listed in a column in the attribute table.&amp;nbsp; I can get the tool to the point where, when run, it will prompt me for river name and I can manually type it in and that works, but is there a way to populate a list of options for the parameter so I don't have to know the exact form of the river name to use the tool?&amp;nbsp; Any help would be appreciated.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Nov 2011 18:16:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/generating-parameter-lists-for-tools-in-arc10/m-p/639464#M17205</guid>
      <dc:creator>TylerQuick</dc:creator>
      <dc:date>2011-11-09T18:16:06Z</dc:date>
    </item>
    <item>
      <title>Re: Generating parameter lists for tools in Arc10</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/generating-parameter-lists-for-tools-in-arc10/m-p/639465#M17206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If you just want to read the data&amp;nbsp; from your feature layer then dataStatistics.UniqueValues can be walked using .MoveNext() after this query: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
ICursor cursor = geoFeatureLayer.Search( null, false ) as ICursor;
IDataStatistics dataStatistics = new DataStatisticsClass();
dataStatistics.Field = fieldName;
dataStatistics.Cursor = cursor;
dataStatistics.UniqueValues.Reset();
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The fieldName would be the RiverName field (or whatever it is called.)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I should add that if a MapControl is passed as your hookhelper then you can pass data to the tool or command using the CustomProperty field.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 03:10:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/generating-parameter-lists-for-tools-in-arc10/m-p/639465#M17206</guid>
      <dc:creator>GeorgeFaraj</dc:creator>
      <dc:date>2021-12-12T03:10:23Z</dc:date>
    </item>
  </channel>
</rss>

