<?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>idea Allow renaming of layouts and maps when importing layout file in ArcGIS Pro Ideas</title>
    <link>https://community.esri.com/t5/arcgis-pro-ideas/allow-renaming-of-layouts-and-maps-when-importing/idi-p/1409026</link>
    <description>&lt;P&gt;Allow user to rename Layout and Maps when importing a layout file (.pagx). Often I have multiple maps within a single layout, and both the Layout and Maps within are appended with a number after the name of the layout file (i.e. Layout Wildlife1, Main Map Wildlife1, Inset Map Wildlife1, etc.). I have to rename these every time I import a layout file, which is time-consuming. I would like the option to rename these items when importing the layout file.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 04-12-24 at 08.57 AM.PNG" style="width: 877px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/100795iEF993A7CB09508B6/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 04-12-24 at 08.57 AM.PNG" alt="Screen Shot 04-12-24 at 08.57 AM.PNG" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Screen Shot 04-12-24 at 08.57 AM.PNG&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 04-12-24 at 09.01 AM.PNG" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/100809i84534F5897D8C5A6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screen Shot 04-12-24 at 09.01 AM.PNG" alt="Screen Shot 04-12-24 at 09.01 AM.PNG" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Screen Shot 04-12-24 at 09.01 AM.PNG&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
    <pubDate>Fri, 12 Apr 2024 15:24:19 GMT</pubDate>
    <dc:creator>FourCornersMapping</dc:creator>
    <dc:date>2024-04-12T15:24:19Z</dc:date>
    <item>
      <title>Allow renaming of layouts and maps when importing layout file</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/allow-renaming-of-layouts-and-maps-when-importing/idi-p/1409026</link>
      <description>&lt;P&gt;Allow user to rename Layout and Maps when importing a layout file (.pagx). Often I have multiple maps within a single layout, and both the Layout and Maps within are appended with a number after the name of the layout file (i.e. Layout Wildlife1, Main Map Wildlife1, Inset Map Wildlife1, etc.). I have to rename these every time I import a layout file, which is time-consuming. I would like the option to rename these items when importing the layout file.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 04-12-24 at 08.57 AM.PNG" style="width: 877px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/100795iEF993A7CB09508B6/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 04-12-24 at 08.57 AM.PNG" alt="Screen Shot 04-12-24 at 08.57 AM.PNG" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Screen Shot 04-12-24 at 08.57 AM.PNG&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 04-12-24 at 09.01 AM.PNG" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/100809i84534F5897D8C5A6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screen Shot 04-12-24 at 09.01 AM.PNG" alt="Screen Shot 04-12-24 at 09.01 AM.PNG" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Screen Shot 04-12-24 at 09.01 AM.PNG&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Fri, 12 Apr 2024 15:24:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/allow-renaming-of-layouts-and-maps-when-importing/idi-p/1409026</guid>
      <dc:creator>FourCornersMapping</dc:creator>
      <dc:date>2024-04-12T15:24:19Z</dc:date>
    </item>
    <item>
      <title>Re: Allow renaming of layouts and maps when importing layout file</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/allow-renaming-of-layouts-and-maps-when-importing/idc-p/1409087#M29361</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/501017"&gt;@FourCornersMapping&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;I can't speak to doing this in the User Interface but this might be automated using Python.&lt;/P&gt;&lt;P&gt;For example,&lt;/P&gt;&lt;LI-CODE lang="python"&gt;p = arcpy.mp.ArcGISProject('current')
newLyt = p.importDocument(r"C:\temp\Layout.pagx", True, True)
newLyt.name = "New Layout"&lt;/LI-CODE&gt;&lt;P&gt;This technique only allows you to rename one object at a time.&amp;nbsp; In the above example, I'm using reuse existing maps = True so if the map already exists, it doesn't get recreated as a project item.&lt;/P&gt;&lt;P&gt;The importDocument function can also be used to import mapx and many other file types.&lt;/P&gt;&lt;P&gt;Jeff - arcpy.mp and Layout teams&lt;/P&gt;</description>
      <pubDate>Fri, 12 Apr 2024 16:50:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/allow-renaming-of-layouts-and-maps-when-importing/idc-p/1409087#M29361</guid>
      <dc:creator>JeffBarrette</dc:creator>
      <dc:date>2024-04-12T16:50:46Z</dc:date>
    </item>
    <item>
      <title>Re: Allow renaming of layouts and maps when importing layout file</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/allow-renaming-of-layouts-and-maps-when-importing/idc-p/1409269#M29368</link>
      <description>&lt;P&gt;Great one&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/1134"&gt;@JeffBarrette&lt;/a&gt;&amp;nbsp;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think we could update this code a little bit to accommodate flexibility and error handling. In that way the revised code will be :&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;def &lt;/SPAN&gt;&lt;SPAN&gt;import_layout&lt;/SPAN&gt;(project, filepath, new_name):&lt;BR /&gt;    &lt;SPAN&gt;try&lt;/SPAN&gt;:&lt;BR /&gt;        p = arcpy.mp.ArcGISProject(project)&lt;BR /&gt;        newLyt = p.importDocument(filepath, &lt;SPAN&gt;True&lt;/SPAN&gt;, &lt;SPAN&gt;True&lt;/SPAN&gt;)&lt;BR /&gt;        newLyt.name = new_name&lt;BR /&gt;    &lt;SPAN&gt;except &lt;/SPAN&gt;&lt;SPAN&gt;Exception &lt;/SPAN&gt;&lt;SPAN&gt;as &lt;/SPAN&gt;e:&lt;BR /&gt;        &lt;SPAN&gt;print&lt;/SPAN&gt;(&lt;SPAN&gt;f"An error occurred: &lt;/SPAN&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;e&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;)&lt;BR /&gt;&lt;BR /&gt;import_layout(&lt;SPAN&gt;'current'&lt;/SPAN&gt;, &lt;SPAN&gt;r"C:\temp\Layout.pagx"&lt;/SPAN&gt;, &lt;SPAN&gt;"New Layout"&lt;/SPAN&gt;)&lt;/PRE&gt;&lt;/DIV&gt;</description>
      <pubDate>Sat, 13 Apr 2024 00:14:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/allow-renaming-of-layouts-and-maps-when-importing/idc-p/1409269#M29368</guid>
      <dc:creator>Yarkaah</dc:creator>
      <dc:date>2024-04-13T00:14:09Z</dc:date>
    </item>
    <item>
      <title>Re: Allow renaming of layouts and maps when importing layout file</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/allow-renaming-of-layouts-and-maps-when-importing/idc-p/1409271#M29370</link>
      <description>&lt;P&gt;Hope that help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yaw Arkaah&lt;/P&gt;</description>
      <pubDate>Sat, 13 Apr 2024 00:15:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/allow-renaming-of-layouts-and-maps-when-importing/idc-p/1409271#M29370</guid>
      <dc:creator>Yarkaah</dc:creator>
      <dc:date>2024-04-13T00:15:36Z</dc:date>
    </item>
    <item>
      <title>Re: Allow renaming of layouts and maps when importing layout file</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/allow-renaming-of-layouts-and-maps-when-importing/idc-p/1410287#M29379</link>
      <description>&lt;P data-unlink="true"&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/785379"&gt;@Yarkaah&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/1134"&gt;@JeffBarrette&lt;/a&gt;&amp;nbsp;Please point me to the help resources for the importDocument and import_layout methods (I found &lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/mapping/arcgisproject-class.htm" target="_self"&gt;this&amp;nbsp;&lt;/A&gt;but curious what else there is). I do NOT want to reuse existing maps, so I would also need to make "reuse existing maps" = FALSE and add to the script the ability to rename maps that will be created when the new layout is created. At the end of the day though, I don't want to use python to do this--my request is for the functionality to be included in the user interface. Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Apr 2024 15:16:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/allow-renaming-of-layouts-and-maps-when-importing/idc-p/1410287#M29379</guid>
      <dc:creator>FourCornersMapping</dc:creator>
      <dc:date>2024-04-16T15:16:12Z</dc:date>
    </item>
    <item>
      <title>Re: Allow renaming of layouts and maps when importing layout file</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/allow-renaming-of-layouts-and-maps-when-importing/idc-p/1410316#M29380</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/501017"&gt;@FourCornersMapping&lt;/a&gt;&amp;nbsp;the importDocument method can be found under the ArcGISProject help topic:&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/mapping/arcgisproject-class.htm" target="_blank"&gt;https://pro.arcgis.com/en/pro-app/latest/arcpy/mapping/arcgisproject-class.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;This is not a replacement for your idea, it is a possible workaround for now. Python is great at automation. If you are not familiar with using Python for automation, I understand.&lt;/P&gt;&lt;P&gt;The logic will need to be extended further if you want to set {reuse_existing_maps=False} because the object returned is a layout (for import PAGX) so you would need to know how to find the additiona, newly added maps that are also imported and then rename them accordingly.&amp;nbsp; If there is a way to predict the names of the imported maps, then you could reference them and rename them using arcpy.mp.&lt;/P&gt;&lt;P&gt;Here is an introductory help topic:&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/mapping/introduction-to-arcpy-mp.htm" target="_blank"&gt;https://pro.arcgis.com/en/pro-app/latest/arcpy/mapping/introduction-to-arcpy-mp.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Jeff&lt;/P&gt;&lt;LI-CODE lang="python"&gt;m = p.listMaps('imported map name')[0]
m.name = "New Name"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Apr 2024 15:48:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/allow-renaming-of-layouts-and-maps-when-importing/idc-p/1410316#M29380</guid>
      <dc:creator>JeffBarrette</dc:creator>
      <dc:date>2024-04-16T15:48:17Z</dc:date>
    </item>
    <item>
      <title>Re: Allow renaming of layouts and maps when importing layout file</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/allow-renaming-of-layouts-and-maps-when-importing/idc-p/1410375#M29391</link>
      <description>&lt;P&gt;New maps in an imported .pagx file (Layout file) take the name of the maps in the Layout used to make the .pagx and append them with a number. So if there are two maps, i.e. Main Map and Inset Map, those are named Main Map1 and Inset Map1 in the new layout. This is what I got to work.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;p = arcpy.mp.ArcGISProject('current')
newLyt = p.importDocument(r"C:\temp\Layout.pagx", True, False)
newLyt.name = "New Layout"
m = p.listMaps('Main Map1')[0]
m.name = "Main Map New Name"
m = p.listMaps('Inset Map1')[0]
m.name = "Inset Map New Name"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I fiddled long enough I'm sure I could figure out how to do this by wildcard, listing by order in the list, then renaming based on a variable (newname = "New Name").&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Apr 2024 16:28:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/allow-renaming-of-layouts-and-maps-when-importing/idc-p/1410375#M29391</guid>
      <dc:creator>FourCornersMapping</dc:creator>
      <dc:date>2024-04-17T16:28:04Z</dc:date>
    </item>
  </channel>
</rss>

