<?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 Cannot open zip in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/get-contents-of-mxd-without-connecting-to-sde/m-p/42953#M1117</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I tried to open your zip file w/o success.&amp;nbsp; Can you repost it or better yet email it to me?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="mailto:rwatson@telcordia.com"&gt;rwatson@telcordia.com&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 Apr 2010 10:45:50 GMT</pubDate>
    <dc:creator>RichardWatson</dc:creator>
    <dc:date>2010-04-12T10:45:50Z</dc:date>
    <item>
      <title>Get contents of MXD without connecting to SDE</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/get-contents-of-mxd-without-connecting-to-sde/m-p/42950#M1114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am trying to get a list of the layers in a bunch of mxds that reference SDE data sources.&amp;nbsp; The catch is I don't want to have to login to the SDE server to get this information.&amp;nbsp; I just want to identify whether a mxd contains layers that reference SDE feature classes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Using java I have come up with:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-family:Fixedsys;"&gt;String mxdPath = "mymxd.mxd";&lt;BR /&gt;MapDocument mapDocument = new MapDocument();&lt;BR /&gt;mapDocument.open(mxdPath,"");&lt;BR /&gt;int mapCnt = mapDocument.getMapCount();&lt;BR /&gt;int mapIncr = 0;&lt;BR /&gt;while (mapIncr &amp;lt; mapCnt ) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Map map = (Map)mapDocument.getMap(mapIncr);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; etc....&lt;BR /&gt;}&lt;BR /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then from here I get the layers from the map etc.&amp;nbsp; The problem is I get a pop asking for SDE credentials when I call the getMap method.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyone know of a way around this???&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Apr 2010 23:58:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/get-contents-of-mxd-without-connecting-to-sde/m-p/42950#M1114</guid>
      <dc:creator>KevinNetherton</dc:creator>
      <dc:date>2010-04-08T23:58:36Z</dc:date>
    </item>
    <item>
      <title>Structured Storage</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/get-contents-of-mxd-without-connecting-to-sde/m-p/42951#M1115</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am sure that this is not what you are looking for but mxd files are OLE structured storage.&amp;nbsp; That means that you can read the information from the underlying storages and streams.&amp;nbsp; There are several GUI utlities which show the contents including one that comes with Visual Studio 6, one that you can download from Microsoft, and I believe that ESRI provides one as well.&amp;nbsp; The problem that you will have is that you have to reverse engineer how to read the information you seek.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;At the recent Developer Summit, I asked ESRI about utilities they might have to read/parse mxd files and was told that they did not provide this.&amp;nbsp; My problem was that I wanted to read an mxd in order to read information previously persisted by an extension.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Good luck!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Apr 2010 00:27:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/get-contents-of-mxd-without-connecting-to-sde/m-p/42951#M1115</guid>
      <dc:creator>RichardWatson</dc:creator>
      <dc:date>2010-04-09T00:27:08Z</dc:date>
    </item>
    <item>
      <title>Get contents of MXD without connecting to SDE</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/get-contents-of-mxd-without-connecting-to-sde/m-p/42952#M1116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I knew there must be a way to do this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Turns out if you open your document using a mapserver object instead of a mapdocument object, you can scan the contents of the mxd file without having to connect to the data sources.&amp;nbsp; The code demonstrating what this looks like in a simple example is attached.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Apr 2010 00:33:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/get-contents-of-mxd-without-connecting-to-sde/m-p/42952#M1116</guid>
      <dc:creator>KevinNetherton</dc:creator>
      <dc:date>2010-04-10T00:33:02Z</dc:date>
    </item>
    <item>
      <title>Cannot open zip</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/get-contents-of-mxd-without-connecting-to-sde/m-p/42953#M1117</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I tried to open your zip file w/o success.&amp;nbsp; Can you repost it or better yet email it to me?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="mailto:rwatson@telcordia.com"&gt;rwatson@telcordia.com&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Apr 2010 10:45:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/get-contents-of-mxd-without-connecting-to-sde/m-p/42953#M1117</guid>
      <dc:creator>RichardWatson</dc:creator>
      <dc:date>2010-04-12T10:45:50Z</dc:date>
    </item>
  </channel>
</rss>

