<?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: Full path of Map file in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/full-path-of-map-file/m-p/22330#M558</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This works for Add-In reference, as long as you reference the appropriate Templates location.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;ESRI.ArcGIS.Framework.ITemplates templates = ArcMap.Application.Templates;&amp;nbsp; System.Windows.Forms.MessageBox.Show(template.get_Item(template.Count - 1).ToString());&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Jan 2012 04:41:25 GMT</pubDate>
    <dc:creator>HenryColgate</dc:creator>
    <dc:date>2012-01-24T04:41:25Z</dc:date>
    <item>
      <title>Full path of Map file</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/full-path-of-map-file/m-p/22329#M557</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 am trying to get the full path of my currently open map. I can get the file name using &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;IDocument.Title&lt;/SPAN&gt;&lt;SPAN&gt; but finding the full path is a puzzle.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried getting the window handle and then using this to get the filename but kept getting 'Cannot Read/Write Protected Memory' errors.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does anyone know how to get the full path of the currently open map file?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;John&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jan 2012 02:25:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/full-path-of-map-file/m-p/22329#M557</guid>
      <dc:creator>JohnMcGlynn</dc:creator>
      <dc:date>2012-01-24T02:25:05Z</dc:date>
    </item>
    <item>
      <title>Re: Full path of Map file</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/full-path-of-map-file/m-p/22330#M558</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This works for Add-In reference, as long as you reference the appropriate Templates location.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;ESRI.ArcGIS.Framework.ITemplates templates = ArcMap.Application.Templates;&amp;nbsp; System.Windows.Forms.MessageBox.Show(template.get_Item(template.Count - 1).ToString());&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jan 2012 04:41:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/full-path-of-map-file/m-p/22330#M558</guid>
      <dc:creator>HenryColgate</dc:creator>
      <dc:date>2012-01-24T04:41:25Z</dc:date>
    </item>
    <item>
      <title>Re: Full path of Map file</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/full-path-of-map-file/m-p/22331#M559</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Henry, works beautifully.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;John&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 29 Jan 2012 19:58:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/full-path-of-map-file/m-p/22331#M559</guid>
      <dc:creator>JohnMcGlynn</dc:creator>
      <dc:date>2012-01-29T19:58:44Z</dc:date>
    </item>
  </channel>
</rss>

