<?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: Using extents in python in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/using-extents-in-python/m-p/65169#M5366</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am also experiencing "locking" issues with this script at 10.1.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I wrote this script for 10.0 and am using a FGDB to store temporary files for the MXD.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have turned on the overwrite outputs for geoproccessing, but still get errors saying that these layers are locked.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Aug 2012 20:23:33 GMT</pubDate>
    <dc:creator>ChadFoster</dc:creator>
    <dc:date>2012-08-28T20:23:33Z</dc:date>
    <item>
      <title>Using extents in python</title>
      <link>https://community.esri.com/t5/python-questions/using-extents-in-python/m-p/65168#M5365</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I had a python script in ArcGIS 10, Python 2.6 that would get the extent of selected features and then zoom out from that exent.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In ArcGIS 10.1, Python 2.7 my script crashes at that point.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;arcpy.SelectLayerByAttribute_management(layer1, "NEW_SELECTION")
df.extent = layer1.getSelectedExtent(True)
arcpy.SelectLayerByAttribute_management(layer1,"CLEAR_SELECTION")
df.scale = df.scale * 1.4&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help or suggestions would be greatly appreciated&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Chad&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Aug 2012 14:16:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/using-extents-in-python/m-p/65168#M5365</guid>
      <dc:creator>ChadFoster</dc:creator>
      <dc:date>2012-08-21T14:16:23Z</dc:date>
    </item>
    <item>
      <title>Re: Using extents in python</title>
      <link>https://community.esri.com/t5/python-questions/using-extents-in-python/m-p/65169#M5366</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am also experiencing "locking" issues with this script at 10.1.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I wrote this script for 10.0 and am using a FGDB to store temporary files for the MXD.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have turned on the overwrite outputs for geoproccessing, but still get errors saying that these layers are locked.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Aug 2012 20:23:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/using-extents-in-python/m-p/65169#M5366</guid>
      <dc:creator>ChadFoster</dc:creator>
      <dc:date>2012-08-28T20:23:33Z</dc:date>
    </item>
  </channel>
</rss>

