<?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: DDP custom index layer in ArcGIS Enterprise Portal Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/ddp-custom-index-layer/m-p/216074#M2895</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have been trying to use python to create a custom polygon layer that represents the extents of all the maps I wish to create...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have about 60 extents, and when I run the script, it comes up with this error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;for bkmk in arcpy.mapping.ListBookmarks(mxd):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; array.add(arcpy.Point(bkmk.extent.XMin, bkmk.extent.YMin))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; array.add(arcpy.Point(bkmk.extent.XMin, bkmk.extent.YMax))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; array.add(arcpy.Point(bkmk.extent.XMax, bkmk.extent.YMax))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; array.add(arcpy.Point(bkmk.extent.XMax, bkmk.extent.YMin))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; # To close the polygon, add the first point again&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; array.add(arcpy.Point(bkmk.extent.XMin, bkmk.extent.YMin))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; cur.insertRow([arcpy.Polygon(array), bkmk.name]) #this is line 33&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; array.removeAll()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Runtime error &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Traceback (most recent call last):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; File "&amp;lt;string&amp;gt;", line 33, in &amp;lt;module&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;RuntimeError: The row contains a bad value. [Name]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It does create a layer called Bookmarks and does produce 24 of the 60 polygons, but no more.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Jun 2014 00:27:54 GMT</pubDate>
    <dc:creator>joshuathomson</dc:creator>
    <dc:date>2014-06-18T00:27:54Z</dc:date>
    <item>
      <title>DDP custom index layer</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/ddp-custom-index-layer/m-p/216070#M2891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am trying to create a set of maps using Data Driven Pages. I have a feature class of polygons and wish to have maps that use each of these polygons to define the extent.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The polygons are of varying sizes. I don't know whether it is preferable to choose 1 size/scale of map and have some polygons covered ny 1 map and others needing many maps.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think that there needs to be at least 2 different scales as there is a big difference between the largest and smallest polygons&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas/ clarifications needed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jun 2014 02:42:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/ddp-custom-index-layer/m-p/216070#M2891</guid>
      <dc:creator>joshuathomson</dc:creator>
      <dc:date>2014-06-12T02:42:03Z</dc:date>
    </item>
    <item>
      <title>Re: DDP custom index layer</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/ddp-custom-index-layer/m-p/216071#M2892</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It's your call whether or not a particular scale or scales works for you.&amp;nbsp; Try them out.&amp;nbsp; You can go around manually through the layout extents and decide what scales to use.&amp;nbsp; Then you can specify that scale in a field in the index layer and in the DDP setup box select that field.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Another approach would have you go to each "Map" and adjust the layout scale to what you like best, and then bookmark it.&amp;nbsp; Later you can convert the bookmarks to polygons for your index layer.&amp;nbsp; Alternately at each one layout extent you can use the following add in: &lt;/SPAN&gt;&lt;A href="http://www.arcgis.com/home/item.html?id=a9b032f739254ebeb6221c9294ebc886"&gt;http://www.arcgis.com/home/item.html?id=a9b032f739254ebeb6221c9294ebc886&lt;/A&gt;&lt;SPAN&gt; to add a polygon to your index layer.&amp;nbsp; Another alternative is to use python to set the extents.&amp;nbsp; See &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#//00s300000060000000"&gt;http://resources.arcgis.com/en/help/main/10.1/index.html#//00s300000060000000&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Using any of the foregoing you may want to look at your reference scale setting for your data frame, so that you can get the symbology to display as you like.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then run the DDP and see if you like it.&amp;nbsp; The great thing about using it to export to pdf, is it runs without you and you can go back and make some changes, and redo it.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jun 2014 11:51:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/ddp-custom-index-layer/m-p/216071#M2892</guid>
      <dc:creator>JohnSobetzer</dc:creator>
      <dc:date>2014-06-12T11:51:34Z</dc:date>
    </item>
    <item>
      <title>Re: DDP custom index layer</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/ddp-custom-index-layer/m-p/216072#M2893</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks, I'll try out the different methods you have listed.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jun 2014 01:46:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/ddp-custom-index-layer/m-p/216072#M2893</guid>
      <dc:creator>joshuathomson</dc:creator>
      <dc:date>2014-06-13T01:46:50Z</dc:date>
    </item>
    <item>
      <title>Re: DDP custom index layer</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/ddp-custom-index-layer/m-p/216073#M2894</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I think that using python to create polygons from extents will work great... but Im having some issues with creating those polygons.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;All the python script runs without error, but the resultant Bookmarks feature class is empty.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a certain form that the 'Bookmarks' and 'Template' feature classes need to be in??/&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jun 2014 02:32:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/ddp-custom-index-layer/m-p/216073#M2894</guid>
      <dc:creator>joshuathomson</dc:creator>
      <dc:date>2014-06-16T02:32:43Z</dc:date>
    </item>
    <item>
      <title>Re: DDP custom index layer</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/ddp-custom-index-layer/m-p/216074#M2895</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have been trying to use python to create a custom polygon layer that represents the extents of all the maps I wish to create...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have about 60 extents, and when I run the script, it comes up with this error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;for bkmk in arcpy.mapping.ListBookmarks(mxd):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; array.add(arcpy.Point(bkmk.extent.XMin, bkmk.extent.YMin))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; array.add(arcpy.Point(bkmk.extent.XMin, bkmk.extent.YMax))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; array.add(arcpy.Point(bkmk.extent.XMax, bkmk.extent.YMax))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; array.add(arcpy.Point(bkmk.extent.XMax, bkmk.extent.YMin))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; # To close the polygon, add the first point again&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; array.add(arcpy.Point(bkmk.extent.XMin, bkmk.extent.YMin))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; cur.insertRow([arcpy.Polygon(array), bkmk.name]) #this is line 33&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; array.removeAll()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Runtime error &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Traceback (most recent call last):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; File "&amp;lt;string&amp;gt;", line 33, in &amp;lt;module&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;RuntimeError: The row contains a bad value. [Name]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It does create a layer called Bookmarks and does produce 24 of the 60 polygons, but no more.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jun 2014 00:27:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/ddp-custom-index-layer/m-p/216074#M2895</guid>
      <dc:creator>joshuathomson</dc:creator>
      <dc:date>2014-06-18T00:27:54Z</dc:date>
    </item>
    <item>
      <title>Re: DDP custom index layer</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/ddp-custom-index-layer/m-p/216075#M2896</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Alright, I found my mistake...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Just a Bookmark name that was too long. I changed the name and it runs fine now.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jun 2014 00:53:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/ddp-custom-index-layer/m-p/216075#M2896</guid>
      <dc:creator>joshuathomson</dc:creator>
      <dc:date>2014-06-18T00:53:06Z</dc:date>
    </item>
  </channel>
</rss>

