<?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: How to get user current extent in arcpro in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/how-to-get-user-current-extent-in-arcpro/m-p/372756#M16390</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have found that I could manually go to Project &amp;gt; Save and run the code which will give me the updated extent. However, I am trying to avoid making users do this. I know desktop I can get the user current extent from dataframes, but i can't figure it out with pro. Also, the save() method doesn't work well in the python console. it'll save the project but will not update the extent. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 31 Oct 2017 20:44:21 GMT</pubDate>
    <dc:creator>ianmcintosh</dc:creator>
    <dc:date>2017-10-31T20:44:21Z</dc:date>
    <item>
      <title>How to get user current extent in arcpro</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/how-to-get-user-current-extent-in-arcpro/m-p/372754#M16388</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to figure out how to write python code to get the user current extent from the map view. so far I have this&lt;/P&gt;&lt;P&gt;aprx = arcpy.mp.ArcGISProject('Current')&lt;/P&gt;&lt;P&gt;mp = aprx.listMaps()[0]&lt;/P&gt;&lt;P&gt;view = mp.defaultCamera&lt;/P&gt;&lt;P&gt;print(view.getExtent())&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;however, I have to manually hit save for the getExtent to work. is there a way to get the current extent from the Map view?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Oct 2017 19:00:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/how-to-get-user-current-extent-in-arcpro/m-p/372754#M16388</guid>
      <dc:creator>ChadCarlson1</dc:creator>
      <dc:date>2017-10-31T19:00:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to get user current extent in arcpro</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/how-to-get-user-current-extent-in-arcpro/m-p/372755#M16389</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Save the script? or the project?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Oct 2017 20:31:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/how-to-get-user-current-extent-in-arcpro/m-p/372755#M16389</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2017-10-31T20:31:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to get user current extent in arcpro</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/how-to-get-user-current-extent-in-arcpro/m-p/372756#M16390</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have found that I could manually go to Project &amp;gt; Save and run the code which will give me the updated extent. However, I am trying to avoid making users do this. I know desktop I can get the user current extent from dataframes, but i can't figure it out with pro. Also, the save() method doesn't work well in the python console. it'll save the project but will not update the extent. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Oct 2017 20:44:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/how-to-get-user-current-extent-in-arcpro/m-p/372756#M16390</guid>
      <dc:creator>ianmcintosh</dc:creator>
      <dc:date>2017-10-31T20:44:21Z</dc:date>
    </item>
  </channel>
</rss>

