<?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 ArcGIS Pro Python: Open/view layout within project? in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/arcgis-pro-python-open-view-layout-within-project/m-p/627129#M48850</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is a method (importDocument('path to pagx') to import a layout into a document. This imports it into the project but does not&amp;nbsp;&lt;EM&gt;show&lt;/EM&gt; the layout by default so a user may not know that the layout had been added (i.e. it requires use of the Catalog view in the UI to navigate to that layout and then view it).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any method available to make a layout visible? Having access to this function would allow scripts to both open a layout (if not currently open in the main stage) and focus on a layout (if open as one of many tabs within the main stage).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i.e.&lt;/P&gt;&lt;P&gt;aprx = arcpy.mp.ArcGISProject("Current")&lt;/P&gt;&lt;P&gt;aprx.importDocument("path to pagx file")&lt;/P&gt;&lt;P&gt;layout = aprx.listLayouts('pagx layout I just imported")[0]&lt;/P&gt;&lt;P&gt;layout.visible = True&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 22 Dec 2019 21:38:44 GMT</pubDate>
    <dc:creator>GeoNZ</dc:creator>
    <dc:date>2019-12-22T21:38:44Z</dc:date>
    <item>
      <title>ArcGIS Pro Python: Open/view layout within project?</title>
      <link>https://community.esri.com/t5/python-questions/arcgis-pro-python-open-view-layout-within-project/m-p/627129#M48850</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is a method (importDocument('path to pagx') to import a layout into a document. This imports it into the project but does not&amp;nbsp;&lt;EM&gt;show&lt;/EM&gt; the layout by default so a user may not know that the layout had been added (i.e. it requires use of the Catalog view in the UI to navigate to that layout and then view it).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any method available to make a layout visible? Having access to this function would allow scripts to both open a layout (if not currently open in the main stage) and focus on a layout (if open as one of many tabs within the main stage).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i.e.&lt;/P&gt;&lt;P&gt;aprx = arcpy.mp.ArcGISProject("Current")&lt;/P&gt;&lt;P&gt;aprx.importDocument("path to pagx file")&lt;/P&gt;&lt;P&gt;layout = aprx.listLayouts('pagx layout I just imported")[0]&lt;/P&gt;&lt;P&gt;layout.visible = True&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 22 Dec 2019 21:38:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcgis-pro-python-open-view-layout-within-project/m-p/627129#M48850</guid>
      <dc:creator>GeoNZ</dc:creator>
      <dc:date>2019-12-22T21:38:44Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro Python: Open/view layout within project?</title>
      <link>https://community.esri.com/t5/python-questions/arcgis-pro-python-open-view-layout-within-project/m-p/1112244#M62833</link>
      <description>&lt;P&gt;I have the same question. Did you figure it out?&lt;/P&gt;</description>
      <pubDate>Thu, 28 Oct 2021 20:38:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcgis-pro-python-open-view-layout-within-project/m-p/1112244#M62833</guid>
      <dc:creator>DebbieGoeldner</dc:creator>
      <dc:date>2021-10-28T20:38:27Z</dc:date>
    </item>
  </channel>
</rss>

