<?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 Getting current visible extent in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/getting-current-visible-extent/m-p/207761#M15968</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Does anyone know how to use Python scripting to get the current visible extent of arcMap? Mostly just need to obtain the min/max X and Y coordinates for the display area. I guess this could also be accomplished by drawing a rectangle to the size of the viewable area and then reading the properties of the rectangle afterward.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 Oct 2011 18:35:08 GMT</pubDate>
    <dc:creator>RobertJones6</dc:creator>
    <dc:date>2011-10-13T18:35:08Z</dc:date>
    <item>
      <title>Getting current visible extent</title>
      <link>https://community.esri.com/t5/python-questions/getting-current-visible-extent/m-p/207761#M15968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Does anyone know how to use Python scripting to get the current visible extent of arcMap? Mostly just need to obtain the min/max X and Y coordinates for the display area. I guess this could also be accomplished by drawing a rectangle to the size of the viewable area and then reading the properties of the rectangle afterward.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Oct 2011 18:35:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/getting-current-visible-extent/m-p/207761#M15968</guid>
      <dc:creator>RobertJones6</dc:creator>
      <dc:date>2011-10-13T18:35:08Z</dc:date>
    </item>
    <item>
      <title>Re: Getting current visible extent</title>
      <link>https://community.esri.com/t5/python-questions/getting-current-visible-extent/m-p/207762#M15969</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;this will give you an extent for a data frame in arcmap&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import arcpy
import arcpy.mapping


## Sets the MXD file
IMXD = arcpy.mapping.MapDocument("CURRENT")
## Sets the Dataframe
DF = arcpy.mapping.ListDataFrames(IMXD, "Layers")[0]

print DF.extent&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 10:16:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/getting-current-visible-extent/m-p/207762#M15969</guid>
      <dc:creator>FrankVignati</dc:creator>
      <dc:date>2021-12-11T10:16:16Z</dc:date>
    </item>
    <item>
      <title>Re: Getting current visible extent</title>
      <link>https://community.esri.com/t5/python-questions/getting-current-visible-extent/m-p/207763#M15970</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;That worked wonderfully. Thank you much!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Oct 2011 20:13:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/getting-current-visible-extent/m-p/207763#M15970</guid>
      <dc:creator>RobertJones6</dc:creator>
      <dc:date>2011-10-13T20:13:07Z</dc:date>
    </item>
    <item>
      <title>Re: Getting current visible extent</title>
      <link>https://community.esri.com/t5/python-questions/getting-current-visible-extent/m-p/207764#M15971</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Note - the best, most conistent way to get extent is if you are saving your map document in Layout View.&amp;nbsp; If your map document is in Data View, your extent may change based on the resizing of application windows.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Same applies to getting and setting scale.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jeff&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Oct 2011 13:06:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/getting-current-visible-extent/m-p/207764#M15971</guid>
      <dc:creator>JeffBarrette</dc:creator>
      <dc:date>2011-10-14T13:06:15Z</dc:date>
    </item>
    <item>
      <title>Re: Getting current visible extent</title>
      <link>https://community.esri.com/t5/python-questions/getting-current-visible-extent/m-p/207765#M15972</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Note - the best, most conistent way to get extent is if you are saving your map document in Layout View.&amp;nbsp; If your map document is in Data View, your extent may change based on the resizing of application windows.&lt;BR /&gt;&lt;BR /&gt;Same applies to getting and setting scale.&lt;BR /&gt;&lt;BR /&gt;Jeff&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Ah, but what I'm using it for is to get min and max coordinates for the display to dynamically query a MySQL database holding several GB worth of point data. Versus loading the whole thing into arc at once. It's a work around so I don't have to duplicate an already established database. Thanks for the advise though.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Oct 2011 13:56:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/getting-current-visible-extent/m-p/207765#M15972</guid>
      <dc:creator>RobertJones6</dc:creator>
      <dc:date>2011-10-14T13:56:36Z</dc:date>
    </item>
  </channel>
</rss>

