<?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 Custom Address Locator Add In in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/custom-address-locator-add-in/m-p/92460#M2443</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm looking to write an Add In in VB .NET that uses the same Address Search as ArcMap's native Find Tool, just tweaked. Is there any way to find some source code for the Find tool? All I'm seeing is the REST endpoint for for the North American Address Locator. I can't find any examples on this. A point in the right direction would be marvelous.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;cdebruin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 07 Nov 2012 17:43:53 GMT</pubDate>
    <dc:creator>Corbinde_Bruin</dc:creator>
    <dc:date>2012-11-07T17:43:53Z</dc:date>
    <item>
      <title>Custom Address Locator Add In</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/custom-address-locator-add-in/m-p/92460#M2443</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm looking to write an Add In in VB .NET that uses the same Address Search as ArcMap's native Find Tool, just tweaked. Is there any way to find some source code for the Find tool? All I'm seeing is the REST endpoint for for the North American Address Locator. I can't find any examples on this. A point in the right direction would be marvelous.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;cdebruin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Nov 2012 17:43:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/custom-address-locator-add-in/m-p/92460#M2443</guid>
      <dc:creator>Corbinde_Bruin</dc:creator>
      <dc:date>2012-11-07T17:43:53Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Address Locator Add In</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/custom-address-locator-add-in/m-p/92461#M2444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Try this Post to see if it provides some of the information that you are looking for in a slightly different application setting of ArcGIS Explorer&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.arcgis.com/threads/22126-Can-I-use-an-Address-Locator-on-the-hard-drive-or-query-attributes-via-vb.net-app"&gt;http://forums.arcgis.com/threads/22126-Can-I-use-an-Address-Locator-on-the-hard-drive-or-query-attributes-via-vb.net-app&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Nov 2012 17:08:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/custom-address-locator-add-in/m-p/92461#M2444</guid>
      <dc:creator>MichaelVolz</dc:creator>
      <dc:date>2012-11-13T17:08:21Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Address Locator Add In</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/custom-address-locator-add-in/m-p/92462#M2445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I just found out that the all source code for ArcDesktop tools is available with the DeveloperKit (in both C# and VB.NET).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This is the particular file path on my machine:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;C:\Program Files (x86)\ArcGIS\DeveloperKit10.1\Samples\ArcObjectsNet&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So I just opened up the 'Find' tool here and I'm working on tweaking it's functionality.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Nov 2012 17:28:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/custom-address-locator-add-in/m-p/92462#M2445</guid>
      <dc:creator>Corbinde_Bruin</dc:creator>
      <dc:date>2012-11-16T17:28:40Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Address Locator Add In</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/custom-address-locator-add-in/m-p/92463#M2446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It seems I've either found some old code, or I just can't find the right reference. I'm looking to point to the North American Address Locator in VB.NET.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm using this example:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Public Sub OpenAGSLocatorWorkspace()

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ' Open an ArcGIS Server connection.
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim propertySet As IPropertySet = New PropertySetClass

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; propertySet.SetProperty("machine", "mendota")

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim obj As System.Object = Activator.CreateInstance(Type.GetTypeFromProgID("esriGISClient.AGSServerConnectionFactory"))
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim agsServerConnectionFactory As IAGSServerConnectionFactory = CType(obj, IAGSServerConnectionFactory)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim agsServerConnection As IAGSServerConnection = agsServerConnectionFactory.Open(propertySet, 0)

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; obj = Activator.CreateInstance(Type.GetTypeFromProgID("esriLocation.LocatorManager"))
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim locatorManager2 As ILocatorManager2 = CType(obj, ILocatorManager2)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim Name As IName = agsServerConnection.FullName

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim agsServerConnectionName As IAGSServerConnectionName = CType(Name, IAGSServerConnectionName)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim locatorWorkspace As ILocatorWorkspace = locatorManager2.GetAGSLocatorWorkspace(agsServerConnectionName)

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ' Open the AGSLocatorWorkspace
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim agsLocatorWorkspace As IAGSLocatorWorkspace = CType(locatorWorkspace, IAGSLocatorWorkspace)

&amp;nbsp;&amp;nbsp;&amp;nbsp; End Sub&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Visual Basic gives me an error of type not defined on all the red objects&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 16:00:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/custom-address-locator-add-in/m-p/92463#M2446</guid>
      <dc:creator>Corbinde_Bruin</dc:creator>
      <dc:date>2021-12-12T16:00:36Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Address Locator Add In</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/custom-address-locator-add-in/m-p/92464#M2447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;According to the documentation.&amp;nbsp; The interface you're working with are under ESRI.ARCGIS.GISCLIENT lib.&amp;nbsp; Do you have that lib properly referenced in your project?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Nov 2012 23:32:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/custom-address-locator-add-in/m-p/92464#M2447</guid>
      <dc:creator>SteveFang</dc:creator>
      <dc:date>2012-11-19T23:32:11Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Address Locator Add In</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/custom-address-locator-add-in/m-p/92465#M2448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;From the following link:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://edndoc.esri.com/arcobjects/9.2/ComponentHelp/esriLocation/Get_ArcGIS_Server_locator.htm" rel="nofollow noopener noreferrer" target="_blank"&gt;http://edndoc.esri.com/arcobjects/9.2/ComponentHelp/esriLocation/Get_ArcGIS_Server_locator.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;Public Function GetAGSAddressLocator(strServerName As String, strLocatorName As String) As esriGeoDatabase.ILocator'+++ returns a locator retrieved from an ArcGIS Server
Dim pConnectionProperties As esriSystem.IPropertySet
Dim pAGSServerConnectionFactory As esriGISClient.IAGSServerConnectionFactory
Dim pAGSServerConnectionName As esriGISClient.IAGSServerConnectionName
Dim pLocatorManager As esriLocation.ILocatorManager2
Dim pLocatorWorkspace As esriGeoDatabase.ILocatorWorkspace

'+++ open an ArcGIS Server connection to the specified server machine
Set pConnectionProperties = New esriSystem.PropertySet
pConnectionProperties.SetProperty "machine", strServerName
Set pAGSServerConnectionFactory = New esriGISClient.AGSServerConnectionFactory
Set pAGSServerConnectionName = pAGSServerConnectionFactory.Open(pConnectionProperties, 0).FullName

'+++ retrieve a LocatorWorkspace from the ArcGIS Server connection
Set pLocatorManager = New esriLocation.LocatorManager
Set pLocatorWorkspace = pLocatorManager.GetAGSLocatorWorkspace(pAGSServerConnectionName)

'+++ return the locator with the specified name
Set GetAGSAddressLocator = pLocatorWorkspace.GetLocator(strLocatorName)
End Function
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 23:32:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/custom-address-locator-add-in/m-p/92465#M2448</guid>
      <dc:creator>MichaelVolz</dc:creator>
      <dc:date>2021-12-10T23:32:41Z</dc:date>
    </item>
  </channel>
</rss>

