<?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: Open MXD File in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/open-mxd-file/m-p/336637#M26399</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, you’re correct Rebecca. Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 Apr 2016 15:06:17 GMT</pubDate>
    <dc:creator>ChrisHolmes</dc:creator>
    <dc:date>2016-04-18T15:06:17Z</dc:date>
    <item>
      <title>Open MXD File</title>
      <link>https://community.esri.com/t5/python-questions/open-mxd-file/m-p/336634#M26396</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;I am using this line of code to open up an mxd file:&lt;/P&gt;&lt;P&gt;os.startfile("c:/chris/{0}/{0} - existing_proposed.mxd".format(string))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It works and opens the file, but it opens in a new instance of ArcMap. Is there a way to have it open in the instance that is already open?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Apr 2016 14:53:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/open-mxd-file/m-p/336634#M26396</guid>
      <dc:creator>ChrisHolmes</dc:creator>
      <dc:date>2016-04-18T14:53:01Z</dc:date>
    </item>
    <item>
      <title>Re: Open MXD File</title>
      <link>https://community.esri.com/t5/python-questions/open-mxd-file/m-p/336635#M26397</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;usually referred to a "Current"&lt;/P&gt;&lt;P&gt;&lt;A href="http://desktop.arcgis.com/en/arcmap/latest/analyze/arcpy-mapping/mapdocument-class.htm" title="http://desktop.arcgis.com/en/arcmap/latest/analyze/arcpy-mapping/mapdocument-class.htm"&gt;MapDocument—Help | ArcGIS for Desktop&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Apr 2016 14:59:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/open-mxd-file/m-p/336635#M26397</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2016-04-18T14:59:02Z</dc:date>
    </item>
    <item>
      <title>Re: Open MXD File</title>
      <link>https://community.esri.com/t5/python-questions/open-mxd-file/m-p/336636#M26398</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dan...link is bad (geonet issue?)&lt;/P&gt;&lt;P&gt;I think Chris is wanting a new/different mxd in same session, not the CURRENT mxd.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Apr 2016 15:03:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/open-mxd-file/m-p/336636#M26398</guid>
      <dc:creator>RebeccaStrauch__GISP</dc:creator>
      <dc:date>2016-04-18T15:03:56Z</dc:date>
    </item>
    <item>
      <title>Re: Open MXD File</title>
      <link>https://community.esri.com/t5/python-questions/open-mxd-file/m-p/336637#M26399</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, you’re correct Rebecca. Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Apr 2016 15:06:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/open-mxd-file/m-p/336637#M26399</guid>
      <dc:creator>ChrisHolmes</dc:creator>
      <dc:date>2016-04-18T15:06:17Z</dc:date>
    </item>
    <item>
      <title>Re: Open MXD File</title>
      <link>https://community.esri.com/t5/python-questions/open-mxd-file/m-p/336638#M26400</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;link is bad... grief.&amp;nbsp; every time you run that code, you get a new instance, the arcpy.mapping mapdocument references are working with an already open map document which has been specified or is active before code is run.&amp;nbsp; So... what is you want to do? open more instances or work with an already open instance?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Apr 2016 15:10:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/open-mxd-file/m-p/336638#M26400</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2016-04-18T15:10:49Z</dc:date>
    </item>
    <item>
      <title>Re: Open MXD File</title>
      <link>https://community.esri.com/t5/python-questions/open-mxd-file/m-p/336639#M26401</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Chris, can you explain why you are needing this?&amp;nbsp; Are you trying to automate a task and need to interact with it manually, but you are just trying to speed up the open map proces?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if automating tasks with Python, thru a bunch of mxds, there are better ways to do it..no need to open each one physically.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Apr 2016 15:10:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/open-mxd-file/m-p/336639#M26401</guid>
      <dc:creator>RebeccaStrauch__GISP</dc:creator>
      <dc:date>2016-04-18T15:10:59Z</dc:date>
    </item>
    <item>
      <title>Re: Open MXD File</title>
      <link>https://community.esri.com/t5/python-questions/open-mxd-file/m-p/336640#M26402</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a modelbuilder model which copies a number of mxd files to a new folder based on a index number that the user enters. The index is used for the name of the new folder and is also appended to the front of each mxd file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once the files are copied I want to open one of them which is what the os.startfile accomplishes. I just think it would be nicer if it opens in the instance that is already open.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If there is a better way to do this, please let me know. Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Apr 2016 15:19:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/open-mxd-file/m-p/336640#M26402</guid>
      <dc:creator>ChrisHolmes</dc:creator>
      <dc:date>2016-04-18T15:19:29Z</dc:date>
    </item>
    <item>
      <title>Re: Open MXD File</title>
      <link>https://community.esri.com/t5/python-questions/open-mxd-file/m-p/336641#M26403</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ArcPy itself lives within the current single-document interface thread of ArcMap so you can't directly do this without&amp;nbsp; going to ArcObjects to interact with the process. The easiest way to do this is probably VBA. (I'm assuming you don't want to dive into .NET)&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/thread/19950"&gt;Opening up an MXD into the current ArcMap session using ArcPy?&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Apr 2016 01:52:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/open-mxd-file/m-p/336641#M26403</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2016-04-20T01:52:58Z</dc:date>
    </item>
    <item>
      <title>Re: Open MXD File</title>
      <link>https://community.esri.com/t5/python-questions/open-mxd-file/m-p/336642#M26404</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need ArcObjects.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Don't fret &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt; All is not lost...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://gis.stackexchange.com/questions/80/how-do-i-access-arcobjects-from-python" title="http://gis.stackexchange.com/questions/80/how-do-i-access-arcobjects-from-python"&gt;How do I access ArcObjects from Python? - Geographic Information Systems Stack Exchange&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/thread/119997"&gt;Arcobjects in Python script tool to suppress the Save dialog&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Apr 2016 02:25:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/open-mxd-file/m-p/336642#M26404</guid>
      <dc:creator>Luke_Pinner</dc:creator>
      <dc:date>2016-04-20T02:25:32Z</dc:date>
    </item>
    <item>
      <title>Re: Open MXD File</title>
      <link>https://community.esri.com/t5/python-questions/open-mxd-file/m-p/336643#M26405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Luke&amp;nbsp; &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/laugh.png" /&gt; are you suggesting a different workflow might be in order?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Apr 2016 21:51:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/open-mxd-file/m-p/336643#M26405</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2016-04-20T21:51:17Z</dc:date>
    </item>
    <item>
      <title>Re: Open MXD File</title>
      <link>https://community.esri.com/t5/python-questions/open-mxd-file/m-p/336644#M26406</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Possibly... ArcObjects is the only way to do what the OP wants and using COM via comtypes is the most used (by python people) way of accessing AO (there's also the .NET route using pythonnet). But it's a lot a stuff to install and configure...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Apr 2016 22:09:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/open-mxd-file/m-p/336644#M26406</guid>
      <dc:creator>Luke_Pinner</dc:creator>
      <dc:date>2016-04-20T22:09:06Z</dc:date>
    </item>
    <item>
      <title>Re: Open MXD File</title>
      <link>https://community.esri.com/t5/python-questions/open-mxd-file/m-p/336645#M26407</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I thought so... a need or a nice decision&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Apr 2016 22:15:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/open-mxd-file/m-p/336645#M26407</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2016-04-20T22:15:14Z</dc:date>
    </item>
    <item>
      <title>Re: Open MXD File</title>
      <link>https://community.esri.com/t5/python-questions/open-mxd-file/m-p/336646#M26408</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;But it's a lot a stuff to install and configure...&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;So much for "batteries included."&amp;nbsp;&amp;nbsp; &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Apr 2016 00:40:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/open-mxd-file/m-p/336646#M26408</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2016-04-21T00:40:18Z</dc:date>
    </item>
    <item>
      <title>Re: Open MXD File</title>
      <link>https://community.esri.com/t5/python-questions/open-mxd-file/m-p/336647#M26409</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;lpinner wrote:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it's a lot a stuff to install and configure...&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;And &lt;EM&gt;then&lt;/EM&gt; you have to deal with a python/ArcObjects frankenhybrid&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Apr 2016 03:10:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/open-mxd-file/m-p/336647#M26409</guid>
      <dc:creator>Luke_Pinner</dc:creator>
      <dc:date>2016-04-21T03:10:53Z</dc:date>
    </item>
    <item>
      <title>Re: Open MXD File</title>
      <link>https://community.esri.com/t5/python-questions/open-mxd-file/m-p/336648#M26410</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the feedback everyone. Lots to learn!&lt;/P&gt;&lt;P&gt;Have a good day.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 May 2016 14:04:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/open-mxd-file/m-p/336648#M26410</guid>
      <dc:creator>ChrisHolmes</dc:creator>
      <dc:date>2016-05-02T14:04:15Z</dc:date>
    </item>
    <item>
      <title>Re: Open MXD File</title>
      <link>https://community.esri.com/t5/python-questions/open-mxd-file/m-p/336649#M26411</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rebecca,&lt;/P&gt;&lt;P&gt;When you have a moment could you elaborate a bit on your comment, "there are better ways to do it..no need to open each one physically".&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 May 2016 14:06:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/open-mxd-file/m-p/336649#M26411</guid>
      <dc:creator>ChrisHolmes</dc:creator>
      <dc:date>2016-05-02T14:06:16Z</dc:date>
    </item>
  </channel>
</rss>

