<?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: Using arcpy to pan across map's data frame in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/using-arcpy-to-pan-across-map-s-data-frame/m-p/105760#M8141</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I wonder if this post: &lt;A href="https://community.esri.com/thread/60885" target="_blank"&gt;Zoom/Pan to layer using Arcpy&lt;/A&gt;&amp;nbsp; &lt;BR /&gt;or a combination of the above and the following example, can help you: &lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;df &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;mapping&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;ListDataFrames&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;mxd&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&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;
newExtent &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; df&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;extent
newExtent&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;XMin&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; newExtent&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;YMin &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;180.0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;90.0&lt;/SPAN&gt;
newExtent&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;XMax&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; newExtent&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;YMax &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;180.0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;90.0&lt;/SPAN&gt;
df&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;extent &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; newExtent&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;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 06:26:48 GMT</pubDate>
    <dc:creator>PavanYadav</dc:creator>
    <dc:date>2021-12-11T06:26:48Z</dc:date>
    <item>
      <title>Using arcpy to pan across map's data frame</title>
      <link>https://community.esri.com/t5/python-questions/using-arcpy-to-pan-across-map-s-data-frame/m-p/105759#M8140</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a total of 150 maps I used arcpy and the Mapping module to create. Everything works and looks fine, except that some maps have features being hidden by an inset data frame. I cannot change the position of the inset data frame, so that's out of the question. Is there a way using arcpy and the mapping module to pan across the map?&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Mar 2019 21:31:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/using-arcpy-to-pan-across-map-s-data-frame/m-p/105759#M8140</guid>
      <dc:creator>Kevin_C</dc:creator>
      <dc:date>2019-03-28T21:31:31Z</dc:date>
    </item>
    <item>
      <title>Re: Using arcpy to pan across map's data frame</title>
      <link>https://community.esri.com/t5/python-questions/using-arcpy-to-pan-across-map-s-data-frame/m-p/105760#M8141</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I wonder if this post: &lt;A href="https://community.esri.com/thread/60885" target="_blank"&gt;Zoom/Pan to layer using Arcpy&lt;/A&gt;&amp;nbsp; &lt;BR /&gt;or a combination of the above and the following example, can help you: &lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;df &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;mapping&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;ListDataFrames&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;mxd&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&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;
newExtent &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; df&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;extent
newExtent&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;XMin&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; newExtent&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;YMin &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;180.0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;90.0&lt;/SPAN&gt;
newExtent&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;XMax&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; newExtent&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;YMax &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;180.0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;90.0&lt;/SPAN&gt;
df&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;extent &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; newExtent&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;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 06:26:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/using-arcpy-to-pan-across-map-s-data-frame/m-p/105760#M8141</guid>
      <dc:creator>PavanYadav</dc:creator>
      <dc:date>2021-12-11T06:26:48Z</dc:date>
    </item>
    <item>
      <title>Re: Using arcpy to pan across map's data frame</title>
      <link>https://community.esri.com/t5/python-questions/using-arcpy-to-pan-across-map-s-data-frame/m-p/105761#M8142</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also, check this out: &lt;A class="" href="http://desktop.arcgis.com/en/arcmap/latest/analyze/arcpy-mapping/dataframe-class.htm" title="http://desktop.arcgis.com/en/arcmap/latest/analyze/arcpy-mapping/dataframe-class.htm"&gt;panToExtent (extent)&lt;/A&gt; &lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/latest/analyze/arcpy-mapping/dataframe-class.htm" title="http://desktop.arcgis.com/en/arcmap/latest/analyze/arcpy-mapping/dataframe-class.htm"&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Mar 2019 22:20:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/using-arcpy-to-pan-across-map-s-data-frame/m-p/105761#M8142</guid>
      <dc:creator>PavanYadav</dc:creator>
      <dc:date>2019-03-28T22:20:41Z</dc:date>
    </item>
    <item>
      <title>Re: Using arcpy to pan across map's data frame</title>
      <link>https://community.esri.com/t5/python-questions/using-arcpy-to-pan-across-map-s-data-frame/m-p/105762#M8143</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I use a bit of python script and pointers to bookmarks to output maps:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;for bkmk in arcpy.mapping.ListBookmarks(mxd, data_frame=df):
      
    LookupText1 = bkmk.name
    df.extent = bkmk.extent
    arcpy.AddMessage(bkmk)
    arcpy.RefreshActiveView()&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;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Let me know if you need some more information on how to do this.&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Jim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 06:26:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/using-arcpy-to-pan-across-map-s-data-frame/m-p/105762#M8143</guid>
      <dc:creator>JimCousins</dc:creator>
      <dc:date>2021-12-11T06:26:50Z</dc:date>
    </item>
  </channel>
</rss>

