<?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: Arcpy Pro importDocument in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/arcpy-pro-importdocument/m-p/1473906#M70597</link>
    <description>&lt;P&gt;Is there a way to set the imported map document as "tab visible" ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="FredericPoliart_EsriAU_0-1715871902106.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/104372i859E5A457B1BA4B9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="FredericPoliart_EsriAU_0-1715871902106.png" alt="FredericPoliart_EsriAU_0-1715871902106.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;..wait..&amp;nbsp; &amp;nbsp; call&amp;nbsp; &amp;nbsp;&lt;SPAN&gt;map.openView()&amp;nbsp; ?&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 16 May 2024 15:07:15 GMT</pubDate>
    <dc:creator>FredericPoliart_EsriAU</dc:creator>
    <dc:date>2024-05-16T15:07:15Z</dc:date>
    <item>
      <title>Arcpy Pro importDocument</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-pro-importdocument/m-p/96479#M7469</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm working from the Python console in Pro 2.3 and when I &lt;STRONG&gt;importDocument&lt;/STRONG&gt; it seems to work but nothing opens. The parameters call for the document and it's layout, so I tried that too.&amp;nbsp;Is there another step that I'm missing?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; arcpy
p &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;mp&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;ArcGISProject&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'CURRENT'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;#importDocument(document_path, {include_layout})&lt;/SPAN&gt;
p&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;importDocument&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;r&lt;SPAN class="string token"&gt;'path\to\MUNICIPAL_LIMITS_A.aprx'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There was a similar question to mine here, but it's sort of dated:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://gis.stackexchange.com/questions/169008/importing-mxd-to-arcgis-pro-programmatically" title="https://gis.stackexchange.com/questions/169008/importing-mxd-to-arcgis-pro-programmatically" rel="nofollow noopener noreferrer" target="_blank"&gt;arcpy - Importing MXD to ArcGIS Pro programmatically? - Geographic Information Systems Stack Exchange&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"&lt;SPAN style="color: #242729; background-color: #f9f8f6;"&gt;To follow up on my comment, the code you posted does work, but does&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #242729; background-color: #f9f8f6; border: 0px; font-weight: bold;"&gt;&lt;STRONG&gt;not&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #242729; background-color: #f9f8f6;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;automatically&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #242729; background-color: #f9f8f6; border: 0px; font-weight: bold;"&gt;&lt;STRONG&gt;open&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #242729; background-color: #f9f8f6;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;the newly imported map.&lt;/SPAN&gt;"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 06:04:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-pro-importdocument/m-p/96479#M7469</guid>
      <dc:creator>JaredPilbeam2</dc:creator>
      <dc:date>2021-12-11T06:04:33Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy Pro importDocument</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-pro-importdocument/m-p/96480#M7470</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A class="link-titled" href="http://pro.arcgis.com/en/pro-app/arcpy/mapping/arcgisproject-class.htm" title="http://pro.arcgis.com/en/pro-app/arcpy/mapping/arcgisproject-class.htm" rel="nofollow noopener noreferrer" target="_blank"&gt;ArcGISProject—ArcPy | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;still the same... no mention of opening anything, just adding to the project&lt;/P&gt;&lt;P&gt;but the elements are accessible&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;i&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;name &lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; i &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; project&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;listMaps&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'Ice'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'Ice_01'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'fd3b'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'Map'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'X'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'Map1'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'Y'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'fordan3_a ice'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'fordan3_b'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'Z'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;
&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Perhaps the intent of the importDocument, is to access elements from within the project to change those etc.&amp;nbsp; Most of the examples are or modifying project elements without having to open projects or publishing/saving elements like layouts to different formats&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 06:04:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-pro-importdocument/m-p/96480#M7470</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2021-12-11T06:04:35Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy Pro importDocument</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-pro-importdocument/m-p/96481#M7471</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jared, this one has tripped me up in the past as well! You'd certainly think the result would open automatically but that is not the case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead, you'll go to&amp;nbsp;&lt;STRONG&gt;Catalog &amp;gt; Project &amp;gt; Maps&lt;/STRONG&gt; to locate the imported .aprx.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Feb 2019 16:31:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-pro-importdocument/m-p/96481#M7471</guid>
      <dc:creator>EarlMedina</dc:creator>
      <dc:date>2019-02-11T16:31:28Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy Pro importDocument</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-pro-importdocument/m-p/1473906#M70597</link>
      <description>&lt;P&gt;Is there a way to set the imported map document as "tab visible" ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="FredericPoliart_EsriAU_0-1715871902106.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/104372i859E5A457B1BA4B9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="FredericPoliart_EsriAU_0-1715871902106.png" alt="FredericPoliart_EsriAU_0-1715871902106.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;..wait..&amp;nbsp; &amp;nbsp; call&amp;nbsp; &amp;nbsp;&lt;SPAN&gt;map.openView()&amp;nbsp; ?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 16 May 2024 15:07:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-pro-importdocument/m-p/1473906#M70597</guid>
      <dc:creator>FredericPoliart_EsriAU</dc:creator>
      <dc:date>2024-05-16T15:07:15Z</dc:date>
    </item>
  </channel>
</rss>

