<?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 loop through layers in map and find certain layers in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/how-to-loop-through-layers-in-map-and-find-certain/m-p/510664#M40115</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This will get you started:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.) Loop through layers:&amp;nbsp;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/10.3/analyze/arcpy-mapping/listlayers.htm" title="http://desktop.arcgis.com/en/arcmap/10.3/analyze/arcpy-mapping/listlayers.htm"&gt;ListLayers— ArcGIS for Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2.) Search through layer attributes:&amp;nbsp;&lt;A class="link-titled" href="https://pro.arcgis.com/en/pro-app/arcpy/functions/searchcursor.htm" title="https://pro.arcgis.com/en/pro-app/arcpy/functions/searchcursor.htm"&gt;SearchCursor— ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;a.) I would store data in a list []&lt;/P&gt;&lt;P&gt;3.) Print data in script tool (arcpy.AddMessage) or print in Python IDLE (print ...)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Feb 2017 15:18:05 GMT</pubDate>
    <dc:creator>MitchHolley1</dc:creator>
    <dc:date>2017-02-21T15:18:05Z</dc:date>
    <item>
      <title>How to loop through layers in map and find certain layers</title>
      <link>https://community.esri.com/t5/python-questions/how-to-loop-through-layers-in-map-and-find-certain/m-p/510662#M40113</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was recently given a python test/exercise at work. I'm not sure how to start this particular exercise so if anyone has any suggestions or a sample recipe/code, I would really appreciate it if you can share it with me.&lt;/P&gt;&lt;P&gt;The exercise I was given is:&lt;/P&gt;&lt;P&gt;I have two layers in my mxd which I'll be working off of which are a CITY LAYER and a SEWER MANHOLE LAYER&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.) Loop through layer in map and find the manhole layer and the city layer&lt;/P&gt;&lt;P&gt;2.) Cursor through each record in the city layer&lt;/P&gt;&lt;P&gt;3.) Print city name and how many manholes are within each city layer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Feb 2017 15:05:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-loop-through-layers-in-map-and-find-certain/m-p/510662#M40113</guid>
      <dc:creator>MarcosMendez</dc:creator>
      <dc:date>2017-02-21T15:05:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to loop through layers in map and find certain layers</title>
      <link>https://community.esri.com/t5/python-questions/how-to-loop-through-layers-in-map-and-find-certain/m-p/510663#M40114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you can do the task manually, using tools in Arctoolbox, you can throw the workflow tools into modelbuilder and spit out a script snippet that will give you the foundations for a full-fledged script.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Feb 2017 15:08:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-loop-through-layers-in-map-and-find-certain/m-p/510663#M40114</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2017-02-21T15:08:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to loop through layers in map and find certain layers</title>
      <link>https://community.esri.com/t5/python-questions/how-to-loop-through-layers-in-map-and-find-certain/m-p/510664#M40115</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This will get you started:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.) Loop through layers:&amp;nbsp;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/10.3/analyze/arcpy-mapping/listlayers.htm" title="http://desktop.arcgis.com/en/arcmap/10.3/analyze/arcpy-mapping/listlayers.htm"&gt;ListLayers— ArcGIS for Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2.) Search through layer attributes:&amp;nbsp;&lt;A class="link-titled" href="https://pro.arcgis.com/en/pro-app/arcpy/functions/searchcursor.htm" title="https://pro.arcgis.com/en/pro-app/arcpy/functions/searchcursor.htm"&gt;SearchCursor— ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;a.) I would store data in a list []&lt;/P&gt;&lt;P&gt;3.) Print data in script tool (arcpy.AddMessage) or print in Python IDLE (print ...)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Feb 2017 15:18:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-loop-through-layers-in-map-and-find-certain/m-p/510664#M40115</guid>
      <dc:creator>MitchHolley1</dc:creator>
      <dc:date>2017-02-21T15:18:05Z</dc:date>
    </item>
  </channel>
</rss>

