<?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: Matching Rotation Between Data Frames Using Data Driven Pages in Mapping Questions</title>
    <link>https://community.esri.com/t5/mapping-questions/matching-rotation-between-data-frames-using-data/m-p/378587#M4040</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Wouldn't this only be the case if you save the MXD?&amp;nbsp; If the objective is to export to PDF, then run the script, export, and don't save changes.&amp;nbsp; This tool may be better off running as a script tool where you can enter an index value and have it just export that page (or a range of pages).&lt;BR /&gt;&lt;BR /&gt;It would be a good idea to added match data frame rotation to the ideas.esri.com site.&lt;BR /&gt;&lt;BR /&gt;Jeff&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I was wondering if you could edit the scripf tor me so I could add a page range?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Its a lot to aks I know but my Python is poor at best.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kind regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;RB&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 Nov 2012 10:46:42 GMT</pubDate>
    <dc:creator>richardBurdett</dc:creator>
    <dc:date>2012-11-28T10:46:42Z</dc:date>
    <item>
      <title>Matching Rotation Between Data Frames Using Data Driven Pages</title>
      <link>https://community.esri.com/t5/mapping-questions/matching-rotation-between-data-frames-using-data/m-p/378583#M4036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I've created a DataDriven Pages (DDP) MXD with two main data frames of a proposed road.&amp;nbsp; I want both data frames to have the same extents and the same rotation.&amp;nbsp; The top data frame is controlled by DDP and the rotation is set by a field in the Strip Map Index.&amp;nbsp; I've set the bottom data frame to match the extents of the top data frame through the Data Frame Properties &amp;gt; Data Frame tab, however, there is no option to match the rotation to the top data frame.&amp;nbsp; So I turned to python and hacked together a simple script to set the rotation of the bottom data frame to match the top data frame:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;import arcpy mxd = arcpy.mapping.MapDocument("CURRENT") topDF = arcpy.mapping.ListDataFrames(mxd, "Top")[0] bottomDF = arcpy.mapping.ListDataFrames(mxd, "Bottom")[0]&amp;nbsp; for DDP_Page in range(1, (mxd.dataDrivenPages.pageCount + 1)): &amp;nbsp;&amp;nbsp;&amp;nbsp; mxd.dataDrivenPages.currentPageID = DDP_Page &amp;nbsp;&amp;nbsp;&amp;nbsp; angle = mxd.dataDrivenPages.pageRow.angle&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; bottomDF.rotation = angle&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem with the above script is that it overwrites bottom data frame's rotation setting with every iteration through the for loop.&amp;nbsp; So after running the script, the rotation of the bottom data frame on every page is set to the rotation of the last page of the top frame.&amp;nbsp; I suppose one way around this might be to export out a PDF within the FOR loop.&amp;nbsp; Any other suggestions?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Mar 2012 22:38:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/matching-rotation-between-data-frames-using-data/m-p/378583#M4036</guid>
      <dc:creator>AdamInglis</dc:creator>
      <dc:date>2012-03-12T22:38:53Z</dc:date>
    </item>
    <item>
      <title>Re: Matching Rotation Between Data Frames Using Data Driven Pages</title>
      <link>https://community.esri.com/t5/mapping-questions/matching-rotation-between-data-frames-using-data/m-p/378584#M4037</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Wouldn't this only be the case if you save the MXD?&amp;nbsp; If the objective is to export to PDF, then run the script, export, and don't save changes.&amp;nbsp; This tool may be better off running as a script tool where you can enter an index value and have it just export that page (or a range of pages).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It would be a good idea to added match data frame rotation to the ideas.esri.com site.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jeff&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Mar 2012 13:31:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/matching-rotation-between-data-frames-using-data/m-p/378584#M4037</guid>
      <dc:creator>JeffBarrette</dc:creator>
      <dc:date>2012-03-13T13:31:59Z</dc:date>
    </item>
    <item>
      <title>Re: Matching Rotation Between Data Frames Using Data Driven Pages</title>
      <link>https://community.esri.com/t5/mapping-questions/matching-rotation-between-data-frames-using-data/m-p/378585#M4038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Jeff.&amp;nbsp; I did just end up using the script to export the PDFs from within the FOR Loop with:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;import arcpy mxd = arcpy.mapping.MapDocument("CURRENT") topDF = arcpy.mapping.ListDataFrames(mxd, "Top")[0] bottomDF = arcpy.mapping.ListDataFrames(mxd, "Bottom")[0]&amp;nbsp; for DDP_Page in range(1, (mxd.dataDrivenPages.pageCount + 1)): &amp;nbsp;&amp;nbsp;&amp;nbsp; mxd.dataDrivenPages.currentPageID = DDP_Page &amp;nbsp;&amp;nbsp;&amp;nbsp; angle = mxd.dataDrivenPages.pageRow.angle&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; bottomDF.rotation = angle &amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.mapping.ExportToPDF(mxd, r"C:\project\Map_20k_B" + str(DDP_Page) + ".pdf")&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Mar 2012 15:38:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/matching-rotation-between-data-frames-using-data/m-p/378585#M4038</guid>
      <dc:creator>AdamInglis</dc:creator>
      <dc:date>2012-03-13T15:38:58Z</dc:date>
    </item>
    <item>
      <title>Re: Matching Rotation Between Data Frames Using Data Driven Pages</title>
      <link>https://community.esri.com/t5/mapping-questions/matching-rotation-between-data-frames-using-data/m-p/378586#M4039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This is Exactly what I need.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have the same problem i have a road with two data frames that need to match exactly both DDP and rotation for each page exported. How can I modify this script to assist me? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Nov 2012 10:17:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/matching-rotation-between-data-frames-using-data/m-p/378586#M4039</guid>
      <dc:creator>richardBurdett</dc:creator>
      <dc:date>2012-11-28T10:17:05Z</dc:date>
    </item>
    <item>
      <title>Re: Matching Rotation Between Data Frames Using Data Driven Pages</title>
      <link>https://community.esri.com/t5/mapping-questions/matching-rotation-between-data-frames-using-data/m-p/378587#M4040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Wouldn't this only be the case if you save the MXD?&amp;nbsp; If the objective is to export to PDF, then run the script, export, and don't save changes.&amp;nbsp; This tool may be better off running as a script tool where you can enter an index value and have it just export that page (or a range of pages).&lt;BR /&gt;&lt;BR /&gt;It would be a good idea to added match data frame rotation to the ideas.esri.com site.&lt;BR /&gt;&lt;BR /&gt;Jeff&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I was wondering if you could edit the scripf tor me so I could add a page range?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Its a lot to aks I know but my Python is poor at best.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kind regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;RB&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Nov 2012 10:46:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/matching-rotation-between-data-frames-using-data/m-p/378587#M4040</guid>
      <dc:creator>richardBurdett</dc:creator>
      <dc:date>2012-11-28T10:46:42Z</dc:date>
    </item>
    <item>
      <title>Re: Matching Rotation Between Data Frames Using Data Driven Pages</title>
      <link>https://community.esri.com/t5/mapping-questions/matching-rotation-between-data-frames-using-data/m-p/378588#M4041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I was wondering if you could edit the script for me so I could add a page range?&lt;BR /&gt; &lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The script example in the post is simply exporting each page in the for loop (with custom logic executed at each page).&amp;nbsp; Rather than exporting all pages, modify the range value.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Change:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;for DDP_Page in range(1, (mxd.dataDrivenPages.pageCount + 1)):&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;To:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;for DDP_Page in range(2, 5)):&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This will print pages 2-4.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The second sample script for the DDP help topic shows how you can export a list of page names.&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/#/DataDrivenPages/00s300000030000000/"&gt;http://resources.arcgis.com/en/help/main/10.1/#/DataDrivenPages/00s300000030000000/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jeff&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Nov 2012 15:44:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/matching-rotation-between-data-frames-using-data/m-p/378588#M4041</guid>
      <dc:creator>JeffBarrette</dc:creator>
      <dc:date>2012-11-29T15:44:33Z</dc:date>
    </item>
    <item>
      <title>Re: Matching Rotation Between Data Frames Using Data Driven Pages</title>
      <link>https://community.esri.com/t5/mapping-questions/matching-rotation-between-data-frames-using-data/m-p/378589#M4042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jeff,&lt;/P&gt;&lt;P&gt;I found only this 7 years old topic when I tried to find the answer about DDP setting rotation angle.&lt;/P&gt;&lt;P&gt;Can you help me with this?&amp;nbsp;&lt;/P&gt;&lt;P&gt;My exactly question is: I have single layout with 4 data frames (A,B,C,D). In layout mode I enabled DDP and set the rotation angle column from attribute table for data frame A. When I drive pages in layout other data frames moves as well but does not have the rotation angle as I have in frame A. Is it possible to have the same rotation angle for all frames when I change pages?&lt;/P&gt;&lt;P&gt;Thank you for your valuable time and response.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Oct 2019 10:23:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/matching-rotation-between-data-frames-using-data/m-p/378589#M4042</guid>
      <dc:creator>OrkhanAbdullayev</dc:creator>
      <dc:date>2019-10-16T10:23:54Z</dc:date>
    </item>
    <item>
      <title>Re: Matching Rotation Between Data Frames Using Data Driven Pages</title>
      <link>https://community.esri.com/t5/mapping-questions/matching-rotation-between-data-frames-using-data/m-p/378590#M4043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Orkhan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is the same code as the original script but you are just referencing additional data frames.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;import arcpy mxd = arcpy.mapping.MapDocument("CURRENT")&lt;BR /&gt;Main_DF = arcpy.mapping.ListDataFrames(mxd, "Main DF")[0]&lt;BR /&gt;DF_B = arcpy.mapping.ListDataFrames(mxd, "B")[0]&lt;BR /&gt;DF_C = arcpy.mapping.ListDataFrames(mxd, "C")[0]&lt;BR /&gt;DF_D = arcpy.mapping.ListDataFrames(mxd, "D")[0]&lt;BR /&gt;for DDP_Page in range(1, (mxd.dataDrivenPages.pageCount + 1)):&lt;BR /&gt;&amp;nbsp; &amp;nbsp; mxd.dataDrivenPages.currentPageID = DDP_Page&lt;BR /&gt;&amp;nbsp; &amp;nbsp; angle = mxd.dataDrivenPages.pageRow.angle&lt;BR /&gt;&amp;nbsp; &amp;nbsp; DF_B.rotation = angle&lt;BR /&gt;&amp;nbsp; &amp;nbsp; DF_C.rotation = angle&lt;BR /&gt;&amp;nbsp; &amp;nbsp; DF_D.rotation = angle&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Oct 2019 14:06:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/matching-rotation-between-data-frames-using-data/m-p/378590#M4043</guid>
      <dc:creator>JeffBarrette</dc:creator>
      <dc:date>2019-10-16T14:06:52Z</dc:date>
    </item>
    <item>
      <title>Re: Matching Rotation Between Data Frames Using Data Driven Pages</title>
      <link>https://community.esri.com/t5/mapping-questions/matching-rotation-between-data-frames-using-data/m-p/378591#M4044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jeff,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;" arcpy.mapping.ListDataFrames(mxd, "Main DF")[0] "&lt;/P&gt;&lt;P&gt;Above shown line gave error, couldn't figure out what can be the issue in that line?&lt;/P&gt;&lt;P&gt;I simply copy you code to python window of arcmap and tried to run (only changed layer name from A to Morphology, B to Contour)&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Oct 2019 17:22:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/matching-rotation-between-data-frames-using-data/m-p/378591#M4044</guid>
      <dc:creator>OrkhanAbdullayev</dc:creator>
      <dc:date>2019-10-16T17:22:32Z</dc:date>
    </item>
    <item>
      <title>Re: Matching Rotation Between Data Frames Using Data Driven Pages</title>
      <link>https://community.esri.com/t5/mapping-questions/matching-rotation-between-data-frames-using-data/m-p/378592#M4045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;"Main DF" is a wildcard search for the name of the data frame.&amp;nbsp; You may be searching for a data frame with a different name.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Oct 2019 17:34:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/matching-rotation-between-data-frames-using-data/m-p/378592#M4045</guid>
      <dc:creator>JeffBarrette</dc:creator>
      <dc:date>2019-10-16T17:34:12Z</dc:date>
    </item>
    <item>
      <title>Re: Matching Rotation Between Data Frames Using Data Driven Pages</title>
      <link>https://community.esri.com/t5/mapping-questions/matching-rotation-between-data-frames-using-data/m-p/378593#M4046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank You, Jeff, for your help, create tips&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Oct 2019 07:09:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/matching-rotation-between-data-frames-using-data/m-p/378593#M4046</guid>
      <dc:creator>OrkhanAbdullayev</dc:creator>
      <dc:date>2019-10-18T07:09:47Z</dc:date>
    </item>
  </channel>
</rss>

