<?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: Opening KML File in active ArcMap Window in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/opening-kml-file-in-active-arcmap-window/m-p/104146#M2754</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I don't think you can directly add KML to ArcMap (I could be wrong here), but you can use the KMLtoLayer tool to make a .lyr file in the user's temp folder and then add that layer.&lt;BR /&gt;&lt;BR /&gt;It sounds like you're code is not running inside of ArcMap but another application.&amp;nbsp; If so, try using the AppROT class (in Esri.ArcGIS.Framework) to find ArcMap (if it's open) or to open ArcMap &amp;amp; add the layer created from the geoprocessing tool.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;^ I think that is exactly what I needed to hear.&amp;nbsp; That puts me in the right direction of where to look.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Jun 2013 22:22:54 GMT</pubDate>
    <dc:creator>ZachBaker</dc:creator>
    <dc:date>2013-06-04T22:22:54Z</dc:date>
    <item>
      <title>Opening KML File in active ArcMap Window</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/opening-kml-file-in-active-arcmap-window/m-p/104144#M2752</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm writing a program which needs to interface with ArcMap, I need to import a KML file and typically I would run it just by calling&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ArcMap.exe &amp;lt;path to KML file&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem is, this loads a new session of ArcMap. Is there a way I can have it open in a copy currently running? I couldn't find any pages with commandline switches for 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>Fri, 31 May 2013 19:47:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/opening-kml-file-in-active-arcmap-window/m-p/104144#M2752</guid>
      <dc:creator>ZachBaker</dc:creator>
      <dc:date>2013-05-31T19:47:09Z</dc:date>
    </item>
    <item>
      <title>Re: Opening KML File in active ArcMap Window</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/opening-kml-file-in-active-arcmap-window/m-p/104145#M2753</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I don't think you can directly add KML to ArcMap (I could be wrong here), but you can use the KMLtoLayer tool to make a .lyr file in the user's temp folder and then add that layer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It sounds like you're code is not running inside of ArcMap but another application.&amp;nbsp; If so, try using the AppROT class (in Esri.ArcGIS.Framework) to find ArcMap (if it's open) or to open ArcMap &amp;amp; add the layer created from the geoprocessing tool.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Jun 2013 13:05:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/opening-kml-file-in-active-arcmap-window/m-p/104145#M2753</guid>
      <dc:creator>TerryGiles</dc:creator>
      <dc:date>2013-06-04T13:05:32Z</dc:date>
    </item>
    <item>
      <title>Re: Opening KML File in active ArcMap Window</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/opening-kml-file-in-active-arcmap-window/m-p/104146#M2754</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I don't think you can directly add KML to ArcMap (I could be wrong here), but you can use the KMLtoLayer tool to make a .lyr file in the user's temp folder and then add that layer.&lt;BR /&gt;&lt;BR /&gt;It sounds like you're code is not running inside of ArcMap but another application.&amp;nbsp; If so, try using the AppROT class (in Esri.ArcGIS.Framework) to find ArcMap (if it's open) or to open ArcMap &amp;amp; add the layer created from the geoprocessing tool.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;^ I think that is exactly what I needed to hear.&amp;nbsp; That puts me in the right direction of where to look.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Jun 2013 22:22:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/opening-kml-file-in-active-arcmap-window/m-p/104146#M2754</guid>
      <dc:creator>ZachBaker</dc:creator>
      <dc:date>2013-06-04T22:22:54Z</dc:date>
    </item>
    <item>
      <title>Re: Opening KML File in active ArcMap Window</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/opening-kml-file-in-active-arcmap-window/m-p/104147#M2755</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Zach,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As Terry indicated you want to be driving ArcMap using &lt;/SPAN&gt;&lt;STRONG&gt;Automation&lt;/STRONG&gt;&lt;SPAN&gt;, a similar question recently popped up on this forum &lt;/SPAN&gt;&lt;A href="http://gis.stackexchange.com/questions/62483/how-to-access-and-send-coordinates-from-third-party-application-to-the-current-r/62486#62486"&gt;thread&lt;/A&gt;&lt;SPAN&gt;. Try searching for the topic Automation on this forum and keywords like AppROT and IObjectFactory.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Duncan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jun 2013 14:59:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/opening-kml-file-in-active-arcmap-window/m-p/104147#M2755</guid>
      <dc:creator>DuncanHornby</dc:creator>
      <dc:date>2013-06-11T14:59:41Z</dc:date>
    </item>
  </channel>
</rss>

