<?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: Get MXD file name and location in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/get-mxd-file-name-and-location/m-p/236702#M6120</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;If you're using VBA then use:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dim pProject As VBProject &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Set pProject = ThisDocument.VBProject &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Otherwise something like the following should work:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Application.Templates.Item(Application.Templates.Count - 1)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've not tested this so might not be 100% accurate but should set you on your way.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Jul 2010 07:31:25 GMT</pubDate>
    <dc:creator>AndrewMay</dc:creator>
    <dc:date>2010-07-29T07:31:25Z</dc:date>
    <item>
      <title>Get MXD file name and location</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/get-mxd-file-name-and-location/m-p/236701#M6119</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 was wondering how to get the location and name of a MXD that is currently open.&amp;nbsp; I want to be able to get it into the FileInfo assembly.&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;Will&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jul 2010 15:40:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/get-mxd-file-name-and-location/m-p/236701#M6119</guid>
      <dc:creator>JudsonOldford</dc:creator>
      <dc:date>2010-07-28T15:40:29Z</dc:date>
    </item>
    <item>
      <title>Re: Get MXD file name and location</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/get-mxd-file-name-and-location/m-p/236702#M6120</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;If you're using VBA then use:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dim pProject As VBProject &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Set pProject = ThisDocument.VBProject &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Otherwise something like the following should work:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Application.Templates.Item(Application.Templates.Count - 1)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've not tested this so might not be 100% accurate but should set you on your way.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jul 2010 07:31:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/get-mxd-file-name-and-location/m-p/236702#M6120</guid>
      <dc:creator>AndrewMay</dc:creator>
      <dc:date>2010-07-29T07:31:25Z</dc:date>
    </item>
  </channel>
</rss>

