<?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: Arcpy Zoom to Point in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/arcpy-zoom-to-point/m-p/235981#M10270</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The basics are covered here:&amp;nbsp; &lt;A class="link-titled" href="https://gis.stackexchange.com/questions/134243/using-arcpy-to-zoom-to-y-x-string-coordinate-pair-copy-pasted-from-google-maps" title="https://gis.stackexchange.com/questions/134243/using-arcpy-to-zoom-to-y-x-string-coordinate-pair-copy-pasted-from-google-maps" rel="nofollow noopener noreferrer" target="_blank"&gt;arcgis desktop - Using ArcPy to zoom to Y,X (string) coordinate pair copy/pasted from Google Maps? - Geographic Informat…&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;x&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;y &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="comment token"&gt;# tuple containing x,y coordinates&lt;/SPAN&gt;
mxd &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;MapDocument&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"CURRENT"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&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;
df&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;panToExtent&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Extent&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;x&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;y&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;x&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;y&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
df&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;scale &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;5000&lt;/SPAN&gt;
arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;RefreshActiveView&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;‍‍‍‍‍‍‍‍‍‍‍‍&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;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/latest/analyze/arcpy-classes/extent.htm" title="http://desktop.arcgis.com/en/arcmap/latest/analyze/arcpy-classes/extent.htm" rel="nofollow noopener noreferrer" target="_blank"&gt;Extent—Help | ArcGIS Desktop&lt;/A&gt;&amp;nbsp; doesn't work with spatial references directly so you will want to make sure the coordinates you are passing are already in the same coordinate system of the data frame.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 11:53:55 GMT</pubDate>
    <dc:creator>JoshuaBixby</dc:creator>
    <dc:date>2021-12-11T11:53:55Z</dc:date>
    <item>
      <title>Arcpy Zoom to Point</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcpy-zoom-to-point/m-p/235979#M10268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have coordinates from a point that I want to move to. I typically use the zoom to x,y on arc desktop but I am trying to automate the process using&amp;nbsp;arcpy. I can't seem to figure out how to use the coordinates to move the extent with the point in the middle and then a scale at 50000.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Oct 2018 22:20:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcpy-zoom-to-point/m-p/235979#M10268</guid>
      <dc:creator>DaneMyers1</dc:creator>
      <dc:date>2018-10-09T22:20:12Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy Zoom to Point</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcpy-zoom-to-point/m-p/235980#M10269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is your script? and are you using arcpy mxd with 'CURRENT' in the mapping module? and does it include a refresh?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Oct 2018 22:25:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcpy-zoom-to-point/m-p/235980#M10269</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2018-10-09T22:25:48Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy Zoom to Point</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcpy-zoom-to-point/m-p/235981#M10270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The basics are covered here:&amp;nbsp; &lt;A class="link-titled" href="https://gis.stackexchange.com/questions/134243/using-arcpy-to-zoom-to-y-x-string-coordinate-pair-copy-pasted-from-google-maps" title="https://gis.stackexchange.com/questions/134243/using-arcpy-to-zoom-to-y-x-string-coordinate-pair-copy-pasted-from-google-maps" rel="nofollow noopener noreferrer" target="_blank"&gt;arcgis desktop - Using ArcPy to zoom to Y,X (string) coordinate pair copy/pasted from Google Maps? - Geographic Informat…&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;x&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;y &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="comment token"&gt;# tuple containing x,y coordinates&lt;/SPAN&gt;
mxd &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;MapDocument&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"CURRENT"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&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;
df&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;panToExtent&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Extent&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;x&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;y&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;x&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;y&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
df&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;scale &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;5000&lt;/SPAN&gt;
arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;RefreshActiveView&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;‍‍‍‍‍‍‍‍‍‍‍‍&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;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/latest/analyze/arcpy-classes/extent.htm" title="http://desktop.arcgis.com/en/arcmap/latest/analyze/arcpy-classes/extent.htm" rel="nofollow noopener noreferrer" target="_blank"&gt;Extent—Help | ArcGIS Desktop&lt;/A&gt;&amp;nbsp; doesn't work with spatial references directly so you will want to make sure the coordinates you are passing are already in the same coordinate system of the data frame.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 11:53:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcpy-zoom-to-point/m-p/235981#M10270</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2021-12-11T11:53:55Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy Zoom to Point</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcpy-zoom-to-point/m-p/235982#M10271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there anything like it the arcpy&amp;nbsp;that ships with Pro? It's certainly not in...&lt;/P&gt;&lt;PRE class="language-python line-numbers"&gt;&lt;CODE&gt;arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;mp&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jan 2020 21:11:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcpy-zoom-to-point/m-p/235982#M10271</guid>
      <dc:creator>Arne_Gelfert</dc:creator>
      <dc:date>2020-01-07T21:11:15Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy Zoom to Point</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcpy-zoom-to-point/m-p/235983#M10272</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looks like&amp;nbsp;it may now be handled using the&amp;nbsp;&lt;A class="link-titled" href="https://pro.arcgis.com/en/pro-app/arcpy/mapping/camera-class.htm" title="https://pro.arcgis.com/en/pro-app/arcpy/mapping/camera-class.htm" rel="nofollow noopener noreferrer" target="_blank"&gt;Camera—ArcPy | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;and&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;mf.camera.setExtent(&amp;lt;extent&amp;gt;)

or 

mf.camera.getExtent()&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 11:53:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcpy-zoom-to-point/m-p/235983#M10272</guid>
      <dc:creator>Arne_Gelfert</dc:creator>
      <dc:date>2021-12-11T11:53:57Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy Zoom to Point</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcpy-zoom-to-point/m-p/235984#M10273</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/339735"&gt;Arne Gelfert&lt;/A&gt;‌ This link provides some explanations and the diagram shows the inter-relationships and what has moved and where.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://pro.arcgis.com/en/pro-app/arcpy/mapping/migratingfrom10xarcpymapping.htm" title="https://pro.arcgis.com/en/pro-app/arcpy/mapping/migratingfrom10xarcpymapping.htm"&gt;Migrating from arcpy.mapping to ArcGIS Pro—ArcPy | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jan 2020 22:40:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcpy-zoom-to-point/m-p/235984#M10273</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2020-01-07T22:40:54Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy Zoom to Point</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcpy-zoom-to-point/m-p/235985#M10274</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, Dan... I'll check it out. Camera.extent was a good start. Even easier, it appears, will be to just use camera.X/camera.Y.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jan 2020 23:37:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcpy-zoom-to-point/m-p/235985#M10274</guid>
      <dc:creator>Arne_Gelfert</dc:creator>
      <dc:date>2020-01-07T23:37:13Z</dc:date>
    </item>
  </channel>
</rss>

