<?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: Use python to zoom on opening in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/use-python-to-zoom-on-opening/m-p/353091#M27706</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If everything is already in the project at the desired location and scale... save it as a bookmark... then save the project.&lt;/P&gt;&lt;P&gt;When the project opens, everything will be as you left it.&lt;/P&gt;&lt;P&gt;However, I suspect that what you really want is a script that takes user input for some point coordinate, then zooms to that location and scale... that is a separate beast.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 30 Jul 2017 02:36:25 GMT</pubDate>
    <dc:creator>DanPatterson_Retired</dc:creator>
    <dc:date>2017-07-30T02:36:25Z</dc:date>
    <item>
      <title>Use python to zoom on opening</title>
      <link>https://community.esri.com/t5/python-questions/use-python-to-zoom-on-opening/m-p/353090#M27705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;how can i use python to ..upon opening a map,center (pan/zoom) to an event ( a point drawn by a X Y Coord. in a table kept in the map) and set the extent of that in data view to 1:10000?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Jul 2017 19:13:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/use-python-to-zoom-on-opening/m-p/353090#M27705</guid>
      <dc:creator>CarlRoss2</dc:creator>
      <dc:date>2017-07-28T19:13:43Z</dc:date>
    </item>
    <item>
      <title>Re: Use python to zoom on opening</title>
      <link>https://community.esri.com/t5/python-questions/use-python-to-zoom-on-opening/m-p/353091#M27706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If everything is already in the project at the desired location and scale... save it as a bookmark... then save the project.&lt;/P&gt;&lt;P&gt;When the project opens, everything will be as you left it.&lt;/P&gt;&lt;P&gt;However, I suspect that what you really want is a script that takes user input for some point coordinate, then zooms to that location and scale... that is a separate beast.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 30 Jul 2017 02:36:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/use-python-to-zoom-on-opening/m-p/353091#M27706</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2017-07-30T02:36:25Z</dc:date>
    </item>
    <item>
      <title>Re: Use python to zoom on opening</title>
      <link>https://community.esri.com/t5/python-questions/use-python-to-zoom-on-opening/m-p/353092#M27707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could try an application extension, which as I understand it will listen for events like opening an MXD and then execute some logic, which could include what you mentioned.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/10.3/guide-books/python-addins/creating-an-add-in-application-extension.htm" title="http://desktop.arcgis.com/en/arcmap/10.3/guide-books/python-addins/creating-an-add-in-application-extension.htm"&gt;Creating a Python add-in application extension—Help | ArcGIS for Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To zoom to your feature, select it using Select By Attribute and then use the zoomToSelectedFeatures method of the data frame object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/10.3/analyze/arcpy-mapping/dataframe-class.htm" title="http://desktop.arcgis.com/en/arcmap/10.3/analyze/arcpy-mapping/dataframe-class.htm"&gt;DataFrame—Help | ArcGIS for Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Micah&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 30 Jul 2017 16:57:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/use-python-to-zoom-on-opening/m-p/353092#M27707</guid>
      <dc:creator>MicahBabinski</dc:creator>
      <dc:date>2017-07-30T16:57:24Z</dc:date>
    </item>
  </channel>
</rss>

