<?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: Need to get addressabilty to the IApplication object in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/need-to-get-addressabilty-to-the-iapplication/m-p/412233#M11068</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Yes, if you are creating the tool using COM then the hook parameter passed into ICommand.OnCreate is of type IApplication, you just need to cast it and keep up with it.&amp;nbsp; If you're creating an add-in then there is a global object available that will give you the reference.&amp;nbsp; I don't use add-ins so I can't tell you what it's called but I'm sure it's in the documentation.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For tools we have a class that defines the parameters, value types, and the IGPEnvironmentManager along with the IGPMessages object.&amp;nbsp; I think that it would make sense that it is in the IGPEnvironmentManager but I'll have to start search on that to find out.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Dec 2013 18:10:13 GMT</pubDate>
    <dc:creator>MichaelEber</dc:creator>
    <dc:date>2013-12-04T18:10:13Z</dc:date>
    <item>
      <title>Need to get addressabilty to the IApplication object</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/need-to-get-addressabilty-to-the-iapplication/m-p/412228#M11063</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm working on a server component that is being run and tested in ArcMap as a tool.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The code is running and we are getting results but not expected results.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Part of the process creates a cost array which we want to add to the map.&amp;nbsp; I have the basics ONCE I HAVE A MAP, but to get the&amp;nbsp;&amp;nbsp; map I need to create the IApplication object.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So running as a tool without any ESRI templates in my code...how do I create the IApplicationObject for accessing the maps in ArcMap???&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Dec 2013 20:30:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/need-to-get-addressabilty-to-the-iapplication/m-p/412228#M11063</guid>
      <dc:creator>MichaelEber</dc:creator>
      <dc:date>2013-12-03T20:30:43Z</dc:date>
    </item>
    <item>
      <title>Re: Need to get addressabilty to the IApplication object</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/need-to-get-addressabilty-to-the-iapplication/m-p/412229#M11064</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;How are you running this code?&amp;nbsp; Your post says you are testing the component inside of ArcMap, so whatever mechanism you're using to run that code should have access to the application.&amp;nbsp; For instance, if you've created a command then it is given a reference to the application in its OnCreate method.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Dec 2013 12:17:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/need-to-get-addressabilty-to-the-iapplication/m-p/412229#M11064</guid>
      <dc:creator>NeilClemmons</dc:creator>
      <dc:date>2013-12-04T12:17:01Z</dc:date>
    </item>
    <item>
      <title>Re: Need to get addressabilty to the IApplication object</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/need-to-get-addressabilty-to-the-iapplication/m-p/412230#M11065</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You have to run ArcMap to get IApplication.&amp;nbsp; This implies that your code/DLL will execute within the context of the ArcMap process.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think that since you are developing a server tool that you should not be using IApplication because that interface is only available in ArcGIS For Desktop applications:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/arcobjects-net/componenthelp/index.html#/Overview/00230000010v000000/"&gt;http://resources.arcgis.com/en/help/arcobjects-net/componenthelp/index.html#/Overview/00230000010v000000/&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Dec 2013 13:12:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/need-to-get-addressabilty-to-the-iapplication/m-p/412230#M11065</guid>
      <dc:creator>RichardWatson</dc:creator>
      <dc:date>2013-12-04T13:12:38Z</dc:date>
    </item>
    <item>
      <title>Re: Need to get addressabilty to the IApplication object</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/need-to-get-addressabilty-to-the-iapplication/m-p/412231#M11066</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Neil,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes it is a service, however for testing we are running it as a tool inside ArcMap.&amp;nbsp; Since I am running inside the context of ArcMap can I still get a way to gain access to IApplication?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Dec 2013 17:54:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/need-to-get-addressabilty-to-the-iapplication/m-p/412231#M11066</guid>
      <dc:creator>MichaelEber</dc:creator>
      <dc:date>2013-12-04T17:54:30Z</dc:date>
    </item>
    <item>
      <title>Re: Need to get addressabilty to the IApplication object</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/need-to-get-addressabilty-to-the-iapplication/m-p/412232#M11067</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Neil,&lt;BR /&gt;&lt;BR /&gt;Yes it is a service, however for testing we are running it as a tool inside ArcMap.&amp;nbsp; Since I am running inside the context of ArcMap can I still get a way to gain access to IApplication?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes, if you are creating the tool using COM then the hook parameter passed into ICommand.OnCreate is of type IApplication, you just need to cast it and keep up with it.&amp;nbsp; If you're creating an add-in then there is a global object available that will give you the reference.&amp;nbsp; I don't use add-ins so I can't tell you what it's called but I'm sure it's in the documentation.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Dec 2013 17:58:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/need-to-get-addressabilty-to-the-iapplication/m-p/412232#M11067</guid>
      <dc:creator>NeilClemmons</dc:creator>
      <dc:date>2013-12-04T17:58:57Z</dc:date>
    </item>
    <item>
      <title>Re: Need to get addressabilty to the IApplication object</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/need-to-get-addressabilty-to-the-iapplication/m-p/412233#M11068</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Yes, if you are creating the tool using COM then the hook parameter passed into ICommand.OnCreate is of type IApplication, you just need to cast it and keep up with it.&amp;nbsp; If you're creating an add-in then there is a global object available that will give you the reference.&amp;nbsp; I don't use add-ins so I can't tell you what it's called but I'm sure it's in the documentation.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For tools we have a class that defines the parameters, value types, and the IGPEnvironmentManager along with the IGPMessages object.&amp;nbsp; I think that it would make sense that it is in the IGPEnvironmentManager but I'll have to start search on that to find out.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Dec 2013 18:10:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/need-to-get-addressabilty-to-the-iapplication/m-p/412233#M11068</guid>
      <dc:creator>MichaelEber</dc:creator>
      <dc:date>2013-12-04T18:10:13Z</dc:date>
    </item>
    <item>
      <title>Re: Need to get addressabilty to the IApplication object</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/need-to-get-addressabilty-to-the-iapplication/m-p/412234#M11069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;A class="jive-link-external-small" href="http://resources.arcgis.com/en/help/arcobjects-net/componenthelp/index.html#/AppRefClass_Class/002300000006000000/" rel="nofollow" target="_blank"&gt;http://resources.arcgis.com/en/help/arcobjects-net/componenthelp/index.html#/AppRefClass_Class/002300000006000000/&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Dec 2013 18:18:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/need-to-get-addressabilty-to-the-iapplication/m-p/412234#M11069</guid>
      <dc:creator>RichardWatson</dc:creator>
      <dc:date>2013-12-04T18:18:47Z</dc:date>
    </item>
    <item>
      <title>Re: Need to get addressabilty to the IApplication object</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/need-to-get-addressabilty-to-the-iapplication/m-p/412235#M11070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;A href="http://resources.arcgis.com/en/help/arcobjects-net/componenthelp/index.html#/AppRefClass_Class/002300000006000000/"&gt;http://resources.arcgis.com/en/help/arcobjects-net/componenthelp/index.html#/AppRefClass_Class/002300000006000000/&lt;/A&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Do you know which DLL the AppRefClass lives in?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm almost there!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Dec 2013 19:16:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/need-to-get-addressabilty-to-the-iapplication/m-p/412235#M11070</guid>
      <dc:creator>MichaelEber</dc:creator>
      <dc:date>2013-12-04T19:16:34Z</dc:date>
    </item>
    <item>
      <title>Re: Need to get addressabilty to the IApplication object</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/need-to-get-addressabilty-to-the-iapplication/m-p/412236#M11071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;ArcObjects Library Reference (&lt;/SPAN&gt;&lt;STRONG&gt;Framework&lt;/STRONG&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Dec 2013 19:19:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/need-to-get-addressabilty-to-the-iapplication/m-p/412236#M11071</guid>
      <dc:creator>RichardWatson</dc:creator>
      <dc:date>2013-12-04T19:19:14Z</dc:date>
    </item>
  </channel>
</rss>

