<?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: When exporting data driven pages, is there a way to append the name/page in Map Advice Community Questions</title>
    <link>https://community.esri.com/t5/map-advice-community-questions/when-exporting-data-driven-pages-is-there-a-way-to/m-p/792241#M70</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Darren has the right idea.&amp;nbsp; Unfortunately, there isn't a way to do this from the User Interface. The alternative is to use the arcpy.mapping Python module to write a script.&amp;nbsp; &amp;nbsp;You can use Python to export the pdf files directly and give them your unique naming convention.&amp;nbsp; I would recommend starting with this help topic starting with the Export to PDF examples:&amp;nbsp;&amp;nbsp;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/latest/analyze/arcpy-mapping/getting-started-with-arcpy-mapping-tutorial.htm#ESRI_SECTION1_5E16DEE6FC834F88B7CE1966584A0817" title="http://desktop.arcgis.com/en/arcmap/latest/analyze/arcpy-mapping/getting-started-with-arcpy-mapping-tutorial.htm#ESRI_SECTION1_5E16DEE6FC834F88B7CE1966584A0817"&gt;Getting started with arcpy.mapping tutorial—Help | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 Apr 2018 23:31:53 GMT</pubDate>
    <dc:creator>DavidWatkins</dc:creator>
    <dc:date>2018-04-26T23:31:53Z</dc:date>
    <item>
      <title>When exporting data driven pages, is there a way to append the name/page</title>
      <link>https://community.esri.com/t5/map-advice-community-questions/when-exporting-data-driven-pages-is-there-a-way-to/m-p/792239#M68</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looking for assistance on how to export many maps under a file name without just appending the name at the end.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example -&lt;/P&gt;&lt;P&gt;Right now it would save something as:&lt;/P&gt;&lt;P&gt;WetlandsMap_Tract_1&lt;/P&gt;&lt;P&gt;Need it to save as:&lt;/P&gt;&lt;P&gt;Tract_1_WetlandsMap&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hoping there is a way that I can change up the location of the page/number when saving.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Apr 2018 21:38:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/map-advice-community-questions/when-exporting-data-driven-pages-is-there-a-way-to/m-p/792239#M68</guid>
      <dc:creator>HeathEisele</dc:creator>
      <dc:date>2018-04-26T21:38:09Z</dc:date>
    </item>
    <item>
      <title>Re: When exporting data driven pages, is there a way to append the name/page</title>
      <link>https://community.esri.com/t5/map-advice-community-questions/when-exporting-data-driven-pages-is-there-a-way-to/m-p/792240#M69</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'd say your best bet is to export as usual, then change the file name, using the method of your choice, but here's how you can do it in Python:&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; os

folder &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'example'&lt;/SPAN&gt; &lt;SPAN class="comment token"&gt;# folder of files&lt;/SPAN&gt;
files &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; os&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;listdir&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;folder&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="comment token"&gt;# list of files&lt;/SPAN&gt;

&lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; f &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;f &lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; f &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; files &lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; f&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;startswith&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'WetlandsMap'&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="comment token"&gt;# loop through matching files&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; old_name&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; extension &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; os&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;path&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;splitext&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;f&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="comment token"&gt;# [file name, extension]&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; old_parts &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; old_name&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;split&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'_'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="comment token"&gt;# list split by '_'&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; new_name &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'_'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;join&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;old_parts&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; old_parts&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;2&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; old_parts&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0&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="comment token"&gt;# construct new name&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; os&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;rename&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; os&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;path&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;join&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;folder&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; f&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; os&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;path&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;join&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;folder&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;''&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;join&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;new_name&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;extension&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;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="comment token"&gt;# rename the old file with the new name&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;old_name&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; new_name&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

Output&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'WetlandsMap_Tract_1'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'Tract_1_WetlandsMap'&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;'WetlandsMap_Tract_2'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'Tract_2_WetlandsMap'&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;/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;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;/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;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 09:06:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/map-advice-community-questions/when-exporting-data-driven-pages-is-there-a-way-to/m-p/792240#M69</guid>
      <dc:creator>DarrenWiens2</dc:creator>
      <dc:date>2021-12-12T09:06:14Z</dc:date>
    </item>
    <item>
      <title>Re: When exporting data driven pages, is there a way to append the name/page</title>
      <link>https://community.esri.com/t5/map-advice-community-questions/when-exporting-data-driven-pages-is-there-a-way-to/m-p/792241#M70</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Darren has the right idea.&amp;nbsp; Unfortunately, there isn't a way to do this from the User Interface. The alternative is to use the arcpy.mapping Python module to write a script.&amp;nbsp; &amp;nbsp;You can use Python to export the pdf files directly and give them your unique naming convention.&amp;nbsp; I would recommend starting with this help topic starting with the Export to PDF examples:&amp;nbsp;&amp;nbsp;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/latest/analyze/arcpy-mapping/getting-started-with-arcpy-mapping-tutorial.htm#ESRI_SECTION1_5E16DEE6FC834F88B7CE1966584A0817" title="http://desktop.arcgis.com/en/arcmap/latest/analyze/arcpy-mapping/getting-started-with-arcpy-mapping-tutorial.htm#ESRI_SECTION1_5E16DEE6FC834F88B7CE1966584A0817"&gt;Getting started with arcpy.mapping tutorial—Help | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Apr 2018 23:31:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/map-advice-community-questions/when-exporting-data-driven-pages-is-there-a-way-to/m-p/792241#M70</guid>
      <dc:creator>DavidWatkins</dc:creator>
      <dc:date>2018-04-26T23:31:53Z</dc:date>
    </item>
    <item>
      <title>Re: When exporting data driven pages, is there a way to append the name/page</title>
      <link>https://community.esri.com/t5/map-advice-community-questions/when-exporting-data-driven-pages-is-there-a-way-to/m-p/792242#M71</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for the link to the tutorial.&amp;nbsp; Very helpful, as I'm just learning about Python and its capabilities.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately, it wasn't clear how I could export&amp;nbsp;numerous pdf's&amp;nbsp;created&amp;nbsp;from data driven pages.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Trying to create&amp;nbsp;maps&amp;nbsp;of 3500+ different parcels, with multiple layers (for example imagery, transportation, property boundaries, and wetlands).&amp;nbsp; Would like to be able to save individual property maps as Tract_1_WetlandsMap, Tract_2_WetlandsMap, etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Should I be thinking of Data Driven Pages as one method and Python scripting as another?&amp;nbsp; Or will they work together?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Apr 2018 15:49:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/map-advice-community-questions/when-exporting-data-driven-pages-is-there-a-way-to/m-p/792242#M71</guid>
      <dc:creator>HeathEisele</dc:creator>
      <dc:date>2018-04-27T15:49:35Z</dc:date>
    </item>
    <item>
      <title>Re: When exporting data driven pages, is there a way to append the name/page</title>
      <link>https://community.esri.com/t5/map-advice-community-questions/when-exporting-data-driven-pages-is-there-a-way-to/m-p/792243#M72</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are two options: 1.) export the DDPs as usual, then change the file names (you could do it manually if you want, but can automate as above using Python), or 2.) automate the DDP export using Python and save the outputs as the file names of your choice.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Apr 2018 16:31:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/map-advice-community-questions/when-exporting-data-driven-pages-is-there-a-way-to/m-p/792243#M72</guid>
      <dc:creator>DarrenWiens2</dc:creator>
      <dc:date>2018-04-27T16:31:01Z</dc:date>
    </item>
    <item>
      <title>Re: When exporting data driven pages, is there a way to append the name/page</title>
      <link>https://community.esri.com/t5/map-advice-community-questions/when-exporting-data-driven-pages-is-there-a-way-to/m-p/792244#M73</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Heath,&lt;/P&gt;&lt;P&gt;I have had my struggles with Data Driven Pages as well. That is how I got into using python scripting, definitely the best technical decision I have made in my career.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you find you are needing to do this process frequently I would definitely recommend taking the time to write a python script using arcpy. However, there are non python alternatives. I have used Microsoft excel and .bat files to quickly rename the files in a folder and there are batch rename utilities out there such as this one:&amp;nbsp;&lt;A href="http://www.bulkrenameutility.co.uk/Main_Intro.php"&gt;http://www.bulkrenameutility.co.uk/Main_Intro.php&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The excel/.bat file method is difficult to explain on here, but if you are interested in it I can try walking you through it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2018 17:58:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/map-advice-community-questions/when-exporting-data-driven-pages-is-there-a-way-to/m-p/792244#M73</guid>
      <dc:creator>ZackaryKing</dc:creator>
      <dc:date>2018-05-15T17:58:35Z</dc:date>
    </item>
  </channel>
</rss>

