<?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: Data Driven Pages Naming Issue in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/data-driven-pages-naming-issue/m-p/803990#M2186</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorted!! Thank you so much Dan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Oct 2018 20:42:44 GMT</pubDate>
    <dc:creator>LieslDe_Swardt1</dc:creator>
    <dc:date>2018-10-17T20:42:44Z</dc:date>
    <item>
      <title>Data Driven Pages Naming Issue</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/data-driven-pages-naming-issue/m-p/803988#M2184</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am new to python, and have been using data driven pages to export multiple maps. However, I would like to change the way I'm naming my maps. Currently it is the custom name + the page name that is linked to the data driven pages.See script below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;mxd = arcpy.mapping.MapDocument("CURRENT")&lt;BR /&gt;... df = arcpy.mapping.ListDataFrames(mxd)[0]&lt;BR /&gt;... &lt;BR /&gt;... in_folder = arcpy.GetParameterAsText(0)&lt;BR /&gt;... file_name = arcpy.GetParameterAsText(1)&lt;BR /&gt;... &lt;BR /&gt;... for pageNum in range(1, mxd.dataDrivenPages.pageCount + 1):&lt;BR /&gt;... mxd.dataDrivenPages.currentPageID = pageNum&lt;BR /&gt;... pageName = mxd.dataDrivenPages.pageRow.Name&lt;BR /&gt;... arcpy.mapping.ExportToJPEG(mxd, r"C:\Users\LiesldeSwardt\Maps\NR Maps\2D_" + pageName + ".jpeg", resolution=250) &lt;BR /&gt;... del mxd&lt;BR /&gt;... del df&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So basically it currently names: 2D_Pretoria of which Pretoria is the pageRow and 2D is my custom name whereas I would like it to name as: Pretoria_2D. I hope this makes sense, any help would be appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Oct 2018 15:09:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/data-driven-pages-naming-issue/m-p/803988#M2184</guid>
      <dc:creator>LieslDe_Swardt1</dc:creator>
      <dc:date>2018-10-17T15:09:27Z</dc:date>
    </item>
    <item>
      <title>Re: Data Driven Pages Naming Issue</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/data-driven-pages-naming-issue/m-p/803989#M2185</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;is this a folder?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #3d3d3d; font-family: arial,helvetica,'helvetica neue',verdana,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; word-wrap: break-word;"&gt;r"C:\Users\LiesldeSwardt\Maps\NR Maps\2D_" &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #3d3d3d; font-family: arial,helvetica,'helvetica neue',verdana,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; word-wrap: break-word;"&gt;If not, then strip the 2D_ part off&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #3d3d3d; font-family: arial,helvetica,'helvetica neue',verdana,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; word-wrap: break-word;"&gt;If it is, then do you want&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #3d3d3d; font-family: arial,helvetica,'helvetica neue',verdana,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; word-wrap: break-word;"&gt;r"C:\Users\LiesldeSwardt\Maps\NR Maps\2D_" + "\\" + pageName + "_2D.jpeg"&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Oct 2018 20:08:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/data-driven-pages-naming-issue/m-p/803989#M2185</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2018-10-17T20:08:45Z</dc:date>
    </item>
    <item>
      <title>Re: Data Driven Pages Naming Issue</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/data-driven-pages-naming-issue/m-p/803990#M2186</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorted!! Thank you so much Dan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Oct 2018 20:42:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/data-driven-pages-naming-issue/m-p/803990#M2186</guid>
      <dc:creator>LieslDe_Swardt1</dc:creator>
      <dc:date>2018-10-17T20:42:44Z</dc:date>
    </item>
    <item>
      <title>Re: Data Driven Pages Naming Issue</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/data-driven-pages-naming-issue/m-p/803991#M2187</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;glad it worked out&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Oct 2018 21:01:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/data-driven-pages-naming-issue/m-p/803991#M2187</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2018-10-17T21:01:27Z</dc:date>
    </item>
  </channel>
</rss>

