<?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 Data Driven Pages in ArcGIS Pro (Customization) in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/data-driven-pages-in-arcgis-pro-customization/m-p/673346#M29812</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Does anyone know if ArcGIS Pro has Data Driven Pages capabilities yet?&amp;nbsp; Also, would like to be able to customize layout properties of items and display for each map page using arcpy.&amp;nbsp; I currently do this with a custom add-in for desktop, but would like to be able to move the process to pro.&amp;nbsp; Would like to know if ESRI is planning to create their own add-in for Pro to achieve these types of functions.&amp;nbsp; Any help would be appreciated.&amp;nbsp; Thanks!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Steve Ptak&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Aug 2015 16:15:26 GMT</pubDate>
    <dc:creator>StevePtak3</dc:creator>
    <dc:date>2015-08-18T16:15:26Z</dc:date>
    <item>
      <title>Data Driven Pages in ArcGIS Pro (Customization)</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/data-driven-pages-in-arcgis-pro-customization/m-p/673346#M29812</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Does anyone know if ArcGIS Pro has Data Driven Pages capabilities yet?&amp;nbsp; Also, would like to be able to customize layout properties of items and display for each map page using arcpy.&amp;nbsp; I currently do this with a custom add-in for desktop, but would like to be able to move the process to pro.&amp;nbsp; Would like to know if ESRI is planning to create their own add-in for Pro to achieve these types of functions.&amp;nbsp; Any help would be appreciated.&amp;nbsp; Thanks!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Steve Ptak&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Aug 2015 16:15:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/data-driven-pages-in-arcgis-pro-customization/m-p/673346#M29812</guid>
      <dc:creator>StevePtak3</dc:creator>
      <dc:date>2015-08-18T16:15:26Z</dc:date>
    </item>
    <item>
      <title>Re: Data Driven Pages in ArcGIS Pro (Customization)</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/data-driven-pages-in-arcgis-pro-customization/m-p/673347#M29813</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https://pro.arcgis.com/en/pro-app/help/projects/20045-import-data-driven-pages.htm" rel="nofollow" target="_blank"&gt;https://pro.arcgis.com/en/pro-app/help/projects/20045-import-data-driven-pages.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;but there is&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https://pro.arcgis.com/en/pro-app/arcpy/mapping/introduction-to-arcpy-mp.htm" rel="nofollow" target="_blank"&gt;https://pro.arcgis.com/en/pro-app/arcpy/mapping/introduction-to-arcpy-mp.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Aug 2015 17:04:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/data-driven-pages-in-arcgis-pro-customization/m-p/673347#M29813</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2015-08-18T17:04:55Z</dc:date>
    </item>
    <item>
      <title>Re: Data Driven Pages in ArcGIS Pro (Customization)</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/data-driven-pages-in-arcgis-pro-customization/m-p/673348#M29814</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Dan!&amp;nbsp; The custom add-in we currently have uses Arcpy. I was curious if ESRI was planning on creating their own add-in for pro that allows this type of customization. (Thus retiring ours and avoiding any tweaks I may need to make)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Aug 2015 17:16:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/data-driven-pages-in-arcgis-pro-customization/m-p/673348#M29814</guid>
      <dc:creator>StevePtak3</dc:creator>
      <dc:date>2015-08-18T17:16:21Z</dc:date>
    </item>
    <item>
      <title>Re: Data Driven Pages in ArcGIS Pro (Customization)</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/data-driven-pages-in-arcgis-pro-customization/m-p/673349#M29815</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Steve, Just fyi Python addin files are not going to be supported in Pro, from what I understand. I've been told this is mainly due to the "ribbon" format.&amp;nbsp; However, The toolbox and many of the tools/scripts that you have written should work.....assuming they have the equivalent arcpy or tool supported in Pro.&amp;nbsp; Of course this is not the case for all things (including data-driven, as Dan's link pointed out). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;edit...oh, and I haven't messed with changing to the arcpy.mp yet myself.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Aug 2015 17:55:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/data-driven-pages-in-arcgis-pro-customization/m-p/673349#M29815</guid>
      <dc:creator>RebeccaStrauch__GISP</dc:creator>
      <dc:date>2015-08-18T17:55:52Z</dc:date>
    </item>
    <item>
      <title>Re: Data Driven Pages in ArcGIS Pro (Customization)</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/data-driven-pages-in-arcgis-pro-customization/m-p/673350#M29816</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Steve:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See this link:&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.esri.com/events/user-conference/q-and-a/q-and-a-detail?id=700&amp;amp;year=2015" title="http://www.esri.com/events/user-conference/q-and-a/q-and-a-detail?id=700&amp;amp;year=2015"&gt;UC Q&amp;amp;A | 2015 Esri User Conference&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"ArcGIS Pro 1.2 is planned for release in Q4 2015. It will include:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Strong KML support&lt;/LI&gt;&lt;LI&gt;The ability to publish and use vector tiles&lt;/LI&gt;&lt;LI&gt;Mobile map packages for deployment on all your devices&lt;/LI&gt;&lt;LI&gt;Additional 3D web scene capabilities&lt;/LI&gt;&lt;LI&gt;Support for topology&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Data Driven Pages&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;The ability to create animations&lt;/LI&gt;&lt;LI&gt;Charts and graphs&lt;/LI&gt;&lt;LI&gt;Support for Concurrent Use"&lt;/LI&gt;&lt;/UL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Aug 2015 19:22:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/data-driven-pages-in-arcgis-pro-customization/m-p/673350#M29816</guid>
      <dc:creator>JoeFlannery</dc:creator>
      <dc:date>2015-08-18T19:22:11Z</dc:date>
    </item>
    <item>
      <title>Re: Data Driven Pages in ArcGIS Pro (Customization)</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/data-driven-pages-in-arcgis-pro-customization/m-p/673351#M29817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good stuff.&amp;nbsp; Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Aug 2015 19:38:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/data-driven-pages-in-arcgis-pro-customization/m-p/673351#M29817</guid>
      <dc:creator>StevePtak3</dc:creator>
      <dc:date>2015-08-18T19:38:03Z</dc:date>
    </item>
    <item>
      <title>Re: Data Driven Pages in ArcGIS Pro (Customization)</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/data-driven-pages-in-arcgis-pro-customization/m-p/673352#M29818</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Happy to help.&amp;nbsp; I, too, am excited to see and work with version 1.2.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Aug 2015 19:40:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/data-driven-pages-in-arcgis-pro-customization/m-p/673352#M29818</guid>
      <dc:creator>JoeFlannery</dc:creator>
      <dc:date>2015-08-18T19:40:40Z</dc:date>
    </item>
    <item>
      <title>Re: Data Driven Pages in ArcGIS Pro (Customization)</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/data-driven-pages-in-arcgis-pro-customization/m-p/673353#M29819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Steve,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a script to create a Map Book that I made a few days ago with the help of &lt;A href="http://pro.arcgis.com/en/pro-app/help/mapping/tutorials/tutorial-create-a-map-book-with-python.htm" title="http://pro.arcgis.com/en/pro-app/help/mapping/tutorials/tutorial-create-a-map-book-with-python.htm" rel="nofollow noopener noreferrer" target="_blank"&gt;Create a map book with Python—ArcGIS Pro | ArcGIS for Desktop&lt;/A&gt; .&amp;nbsp; It modifies the text elements and map extent to act like they would with the data driven functionality.&amp;nbsp; Hopefully this post points you or someone else reading this in the right direction if they don't want to wait until the next release.&amp;nbsp; See the attached file for the PDF it outputs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import arcpy, os
from arcpy import env


# Set input feature class to parameter
fc = arcpy.GetParameterAsText(0)
env.workspace = os.path.dirname(fc)
# Set output PDF location to parameter
pdfOutput = arcpy.GetParameterAsText(1)


# Create the PDF file
pdfPath = os.path.join(pdfOutput,'Inspection.pdf')
pdfDoc = arcpy.mp.PDFDocumentCreate(pdfPath)


# Assign project to parameter
project = arcpy.mp.ArcGISProject("D:\WebSeminars\ProTasks_Demos\Demo2\Data\BuildingTasks\BuildingTasks.aprx")
project.save()
# Select layout and assign to parameter
lyt = project.listLayouts("Layout")[0]
# Set map frame to a parameter and get an extent object
mf = lyt.listElements("MAPFRAME_ELEMENT", "Map Map Frame")[0]
# Set map to a parameter - when importing the layout, it imports the map that was saved with it (ensure this is set correctly)******
map = project.listMaps("Map")[0]
# Set asset layer to a parameter
lyr = map.listLayers(fc)[0]


# Assign Title, Location, Structure, Asset ID, Condition, Last Inspection, and Notes text elements to parameters
titleText = lyt.listElements("TEXT_ELEMENT","Title Text")[0]
locationText = lyt.listElements("TEXT_ELEMENT","Location Text")[0]
structureText = lyt.listElements("TEXT_ELEMENT","Structure Text")[0]
assetText = lyt.listElements("TEXT_ELEMENT","Asset ID Text")[0]
conditionText = lyt.listElements("TEXT_ELEMENT","Condition Text")[0]
lastInspectionText = lyt.listElements("TEXT_ELEMENT","Last Inspection Text")[0]
notesText = lyt.listElements("TEXT_ELEMENT","Notes Text")[0]
# Hide Location, Asset ID, Condition, and Last Inspection text elements for the title page
locationText.text&amp;nbsp; = " "
structureText.text&amp;nbsp; = " "
assetText.text = " "
conditionText.text&amp;nbsp; = " "
lastInspectionText.text = " "
notesText.text = " "


# Zoom to extent of asset layer
###extent = mf.getLayerExtent (lyr,"False","True")
extent = mf.getLayerExtent(lyr)
mf.camera.setExtent(extent)
# Create Title Page for PDF
lyt.exportToPDF(os.path.join(pdfOutput,"TitlePage.pdf"))
pdfDoc.appendPages(os.path.join(pdfOutput,"TitlePage.pdf"))


# Add Length field and calculate values (maintain length in point feature class)
arcpy.AddField_management(fc,"Length","FLOAT")
arcpy.CalculateField_management(fc,"Length","!Shape_Length!","PYTHON")
# Copy selected features to in-memory workspace
arcpy.CopyFeatures_management(fc,"in_memory/SelectedAssets")
# Create center point of assets
arcpy.FeatureToPoint_management("in_memory/SelectedAssets","in_memory/AssetCentroid","CENTROID")






notesText.text = "Notes: _________________________________________________________________________"
# Loop through selected records and create map book
with arcpy.da.SearchCursor("in_memory/AssetCentroid", ['AssetID','CONDITION','LastInspection','DESCRIPTIO','Length','SHAPE@XY','STRUCTURE1']) as cursor:
&amp;nbsp; for row in cursor:
&amp;nbsp; # Get x and y values of centroid
&amp;nbsp; x, y = row[5]
&amp;nbsp; # Set different map extents for different sized features
&amp;nbsp; if row[4] &amp;lt; 70:
&amp;nbsp; # Set smaller extent
&amp;nbsp; left = x - 166
&amp;nbsp; right = x + 166
&amp;nbsp; top = y + 131
&amp;nbsp; bottom = y - 131
&amp;nbsp; else:
&amp;nbsp; # Set larger extent
&amp;nbsp; left = x - 494
&amp;nbsp; right = x + 494
&amp;nbsp; top = y + 390
&amp;nbsp; bottom = y - 390

&amp;nbsp; # Create string from Condition domain value
&amp;nbsp; if str(row[1]) == '1':
&amp;nbsp; conditionValue = 'Bad'
&amp;nbsp; elif str(row[1]) == '2':
&amp;nbsp; conditionValue = 'Poor'
&amp;nbsp; elif str(row[1]) == '3':
&amp;nbsp; conditionValue = 'Fair'
&amp;nbsp; elif str(row[1]) == '4':
&amp;nbsp; conditionValue = 'Good'
&amp;nbsp; elif str(row[1]) == '5':
&amp;nbsp; conditionValue = 'Very Good'
&amp;nbsp; # Update Title, Condition, and Last Inspection text elements
&amp;nbsp; titleText.text = " "
&amp;nbsp; locationText.text&amp;nbsp; = "Location: " + str(row[3])
&amp;nbsp; structureText.text&amp;nbsp; = "Structure: " + str(row[6])
&amp;nbsp; assetText.text = "Asset ID: " + str(row[0])
&amp;nbsp; conditionText.text&amp;nbsp; = "Condition: " + conditionValue
&amp;nbsp; lastInspectionText.text = "Last Inspection Date: " + str(row[2])

&amp;nbsp; # Update map frame extent to the current asset feature
&amp;nbsp; # Assign extent values to parameter
&amp;nbsp; desc = arcpy. Describe(fc)
&amp;nbsp; sr = desc.spatialReference
&amp;nbsp; # Assign extent object new values
&amp;nbsp; extent.XMin = left
&amp;nbsp; extent.XMax = right
&amp;nbsp; extent.YMax = top
&amp;nbsp; extent.YMin = bottom
&amp;nbsp; mf.camera.setExtent(extent)
&amp;nbsp; # Append pages to the PDF
&amp;nbsp; lyt.exportToPDF(os.path.join(pdfOutput,"Asset" + str(row[0]) + ".pdf"))
&amp;nbsp; pdfDoc.appendPages(os.path.join(pdfOutput,"Asset" + str(row[0]) + ".pdf"))


# Set document properties – Change pdf_author to your name or the name of your organization
pdfDoc.updateDocProperties(pdf_title = "Asset Inspection",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pdf_author = "Esri Canada",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pdf_subject = "Asset Inspection",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pdf_keywords = "inspection; asset; condition; last inspection",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pdf_open_view = "USE_THUMBS",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pdf_layout = "SINGLE_PAGE")


pdfDoc.saveAndClose()&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 04:24:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/data-driven-pages-in-arcgis-pro-customization/m-p/673353#M29819</guid>
      <dc:creator>JenniferMcCall4</dc:creator>
      <dc:date>2021-12-12T04:24:52Z</dc:date>
    </item>
    <item>
      <title>Re: Data Driven Pages in ArcGIS Pro (Customization)</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/data-driven-pages-in-arcgis-pro-customization/m-p/673354#M29820</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Jennifer!&amp;nbsp; I'll try this out in the coming weeks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Sep 2015 15:39:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/data-driven-pages-in-arcgis-pro-customization/m-p/673354#M29820</guid>
      <dc:creator>StevePtak3</dc:creator>
      <dc:date>2015-09-03T15:39:21Z</dc:date>
    </item>
  </channel>
</rss>

