<?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: Clearing Selected features in mxd in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/clearing-selected-features-in-mxd/m-p/471925#M36866</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ian, &lt;/P&gt;&lt;P&gt;Thank you very much this was very helpful.&amp;nbsp; I had trouble at first using the arcpy.SelectLayerByAttribute_management right after I had added the layer and zoomToSelectedFeatures.&amp;nbsp; What I ended up doing was to use a "for loop" to go through the layers in a TOCLayer list and used an "if" statement to clear it there.&amp;nbsp; Not sure if this is the most efficient way to do this, but it is working now.&amp;nbsp; Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 30 May 2015 14:03:37 GMT</pubDate>
    <dc:creator>JohnHaynes</dc:creator>
    <dc:date>2015-05-30T14:03:37Z</dc:date>
    <item>
      <title>Clearing Selected features in mxd</title>
      <link>https://community.esri.com/t5/python-questions/clearing-selected-features-in-mxd/m-p/471920#M36861</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using ArcGIS 10,3 and I am trying to create a python script that will automate a mapping process.&amp;nbsp; I have point feature classes and polygon feature classes.&amp;nbsp; I have used MakeFeatureLayer_management to create layers.&amp;nbsp; I then use SelectLayerByLocation to select the polygon that INTERSECTS with the point layer and then I add both the point layer and polygon to the mxd.&amp;nbsp; Once I have them there, I then zoomToSelectedFeatures.&amp;nbsp; I am having trouble clearing the selected features once they have been added to the mxd prior to my exporting the mxd to a pdf.&amp;nbsp; Any help would be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;JD&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 May 2015 22:13:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/clearing-selected-features-in-mxd/m-p/471920#M36861</guid>
      <dc:creator>JohnHaynes</dc:creator>
      <dc:date>2015-05-29T22:13:50Z</dc:date>
    </item>
    <item>
      <title>Re: Clearing Selected features in mxd</title>
      <link>https://community.esri.com/t5/python-questions/clearing-selected-features-in-mxd/m-p/471921#M36862</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;arcpy.SelectLayerByAttribute_management(Layer, "CLEAR_SELECTION")&lt;/P&gt;&lt;P&gt;arcpy.RefreshActiveView()&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 May 2015 22:21:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/clearing-selected-features-in-mxd/m-p/471921#M36862</guid>
      <dc:creator>IanMurray</dc:creator>
      <dc:date>2015-05-29T22:21:44Z</dc:date>
    </item>
    <item>
      <title>Re: Clearing Selected features in mxd</title>
      <link>https://community.esri.com/t5/python-questions/clearing-selected-features-in-mxd/m-p/471922#M36863</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Untested, but I believe you can run &lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#/Select_Layer_By_Attribute/001700000071000000/"&gt;Select Layer By Attribute&lt;/A&gt;, specifying CLEAR_SELECTION as the selection type.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 May 2015 22:22:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/clearing-selected-features-in-mxd/m-p/471922#M36863</guid>
      <dc:creator>DarrenWiens2</dc:creator>
      <dc:date>2015-05-29T22:22:10Z</dc:date>
    </item>
    <item>
      <title>Re: Clearing Selected features in mxd</title>
      <link>https://community.esri.com/t5/python-questions/clearing-selected-features-in-mxd/m-p/471923#M36864</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tested many many time previously and works.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 May 2015 22:22:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/clearing-selected-features-in-mxd/m-p/471923#M36864</guid>
      <dc:creator>IanMurray</dc:creator>
      <dc:date>2015-05-29T22:22:50Z</dc:date>
    </item>
    <item>
      <title>Re: Clearing Selected features in mxd</title>
      <link>https://community.esri.com/t5/python-questions/clearing-selected-features-in-mxd/m-p/471924#M36865</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That is a workflow that I have had to set up as well.&amp;nbsp; Have a few maps templates, have to loop through each record in a polygon feature class, zoom to the feature, use attribute data to control text elements on my map, then export out to chosen output type on each template.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 May 2015 22:28:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/clearing-selected-features-in-mxd/m-p/471924#M36865</guid>
      <dc:creator>IanMurray</dc:creator>
      <dc:date>2015-05-29T22:28:14Z</dc:date>
    </item>
    <item>
      <title>Re: Clearing Selected features in mxd</title>
      <link>https://community.esri.com/t5/python-questions/clearing-selected-features-in-mxd/m-p/471925#M36866</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ian, &lt;/P&gt;&lt;P&gt;Thank you very much this was very helpful.&amp;nbsp; I had trouble at first using the arcpy.SelectLayerByAttribute_management right after I had added the layer and zoomToSelectedFeatures.&amp;nbsp; What I ended up doing was to use a "for loop" to go through the layers in a TOCLayer list and used an "if" statement to clear it there.&amp;nbsp; Not sure if this is the most efficient way to do this, but it is working now.&amp;nbsp; Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 30 May 2015 14:03:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/clearing-selected-features-in-mxd/m-p/471925#M36866</guid>
      <dc:creator>JohnHaynes</dc:creator>
      <dc:date>2015-05-30T14:03:37Z</dc:date>
    </item>
  </channel>
</rss>

