<?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: Is it possible to work with MapDocuments from a console app? in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/is-it-possible-to-work-with-mapdocuments-from-a/m-p/577717#M15592</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the info.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have ArcGIS for desktop standard.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;After binding to the Runtime, I can create the MapDocument object.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Ultimately, I'm trying to programatically set symbology for all the layers in the MapDocument.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried to find a python solution, but I couldn't find anyway to do it, so I ended up looking at ArcObjects.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Apr 2013 22:32:55 GMT</pubDate>
    <dc:creator>SeanNakasone</dc:creator>
    <dc:date>2013-04-17T22:32:55Z</dc:date>
    <item>
      <title>Is it possible to work with MapDocuments from a console app?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/is-it-possible-to-work-with-mapdocuments-from-a/m-p/577715#M15590</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is it possible to work with MapDocuments from a console app.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here's some example code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IMapDocument pMapDocument = new MapDocument();&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is the error I'm getting:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Retrieving the COM class factory for component with CLSID {2FE5E68E-3DA5-4BDA-BAF1-103C55115A1C} failed due to the following error: 80040111 ClassFactory cannot supply requested class (Exception from HRESULT: 0x80040111 (CLASS_E_CLASSNOTAVAILABLE)).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The reason I'm asking is because I've been able to create MapDocument objects from an add-In to ArcMap, but I'd prefer to use a console app that does not depend on an ArcMap session.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This was the code used in the Add-in:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IMapDocument mapDoc = ArcMap.Document as IMapDocument;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IMxDocument mxDoc = ArcMap.Application.Document as IMxDocument;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So my question is, what's the console app equivalent?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Apr 2013 20:24:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/is-it-possible-to-work-with-mapdocuments-from-a/m-p/577715#M15590</guid>
      <dc:creator>SeanNakasone</dc:creator>
      <dc:date>2013-04-17T20:24:51Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to work with MapDocuments from a console app?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/is-it-possible-to-work-with-mapdocuments-from-a/m-p/577716#M15591</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;A href="http://resources.arcgis.com/en/help/arcobjects-net/componenthelp/0012/001200000s1n000000.htm"&gt;http://resources.arcgis.com/en/help/arcobjects-net/componenthelp/0012/001200000s1n000000.htm&lt;/A&gt;&lt;SPAN&gt; says that the MapDocument class is available in ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.&amp;nbsp; So, yes this class should work with a Console application.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, I assume that you have one (or more) of these products installed on the system where your code is running and you have the appropriate license initialization code (something like RuntimeManager::BindLicense).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Apr 2013 21:13:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/is-it-possible-to-work-with-mapdocuments-from-a/m-p/577716#M15591</guid>
      <dc:creator>RichardWatson</dc:creator>
      <dc:date>2013-04-17T21:13:08Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to work with MapDocuments from a console app?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/is-it-possible-to-work-with-mapdocuments-from-a/m-p/577717#M15592</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the info.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have ArcGIS for desktop standard.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;After binding to the Runtime, I can create the MapDocument object.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Ultimately, I'm trying to programatically set symbology for all the layers in the MapDocument.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried to find a python solution, but I couldn't find anyway to do it, so I ended up looking at ArcObjects.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Apr 2013 22:32:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/is-it-possible-to-work-with-mapdocuments-from-a/m-p/577717#M15592</guid>
      <dc:creator>SeanNakasone</dc:creator>
      <dc:date>2013-04-17T22:32:55Z</dc:date>
    </item>
  </channel>
</rss>

