<?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 Creating a tool using Python to get existing maps within Pro to zoom to a specific coordinate. in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/creating-a-tool-using-python-to-get-existing-maps/m-p/1013200#M35598</link>
    <description>&lt;P&gt;I am trying to get an existing&amp;nbsp;'map' within an Arc Pro project to zoom into a set of specific (preferably user defined) coordinates or even a shapefile every time the map is opened within the Pro project or added as a frame to a layout.&amp;nbsp; Again, the 'extent' will vary for each user, so make that a variable. I am using ArcPro 2.5&lt;/P&gt;&lt;P&gt;I have gotten this so far but it does not allow for a used defined extent and may not work on unopened aprx files/maps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;aprx = arcpy.mp.ArcGISProject('current')&lt;/P&gt;&lt;P&gt;mv = aprx.activeView&lt;/P&gt;&lt;P&gt;ext = mv.camera.getExtent()&lt;/P&gt;&lt;P&gt;ext.XMin = ext.XMin + 100&lt;/P&gt;&lt;P&gt;ext.YMin = ext.YMin + 100&lt;/P&gt;&lt;P&gt;ext.XMax = ext.XMax – 100&lt;/P&gt;&lt;P&gt;ext.YMax = ext.YMax - 100&lt;/P&gt;&lt;P&gt;mv.camera.setExtent(ext)&lt;/P&gt;</description>
    <pubDate>Thu, 31 Dec 2020 17:41:36 GMT</pubDate>
    <dc:creator>aarkowitz_BLM</dc:creator>
    <dc:date>2020-12-31T17:41:36Z</dc:date>
    <item>
      <title>Creating a tool using Python to get existing maps within Pro to zoom to a specific coordinate.</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/creating-a-tool-using-python-to-get-existing-maps/m-p/1013200#M35598</link>
      <description>&lt;P&gt;I am trying to get an existing&amp;nbsp;'map' within an Arc Pro project to zoom into a set of specific (preferably user defined) coordinates or even a shapefile every time the map is opened within the Pro project or added as a frame to a layout.&amp;nbsp; Again, the 'extent' will vary for each user, so make that a variable. I am using ArcPro 2.5&lt;/P&gt;&lt;P&gt;I have gotten this so far but it does not allow for a used defined extent and may not work on unopened aprx files/maps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;aprx = arcpy.mp.ArcGISProject('current')&lt;/P&gt;&lt;P&gt;mv = aprx.activeView&lt;/P&gt;&lt;P&gt;ext = mv.camera.getExtent()&lt;/P&gt;&lt;P&gt;ext.XMin = ext.XMin + 100&lt;/P&gt;&lt;P&gt;ext.YMin = ext.YMin + 100&lt;/P&gt;&lt;P&gt;ext.XMax = ext.XMax – 100&lt;/P&gt;&lt;P&gt;ext.YMax = ext.YMax - 100&lt;/P&gt;&lt;P&gt;mv.camera.setExtent(ext)&lt;/P&gt;</description>
      <pubDate>Thu, 31 Dec 2020 17:41:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/creating-a-tool-using-python-to-get-existing-maps/m-p/1013200#M35598</guid>
      <dc:creator>aarkowitz_BLM</dc:creator>
      <dc:date>2020-12-31T17:41:36Z</dc:date>
    </item>
  </channel>
</rss>

