<?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: Is it possible to do a geoprocess automatically with all the layers of a folder? in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/is-it-possible-to-do-a-geoprocess-automatically/m-p/224107#M12729</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/3116"&gt;Dan Patterson&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;That is I want to do with 190 files. I did with one shp example, its name is "Rod_inter_Masa_156_16.shp"&lt;/P&gt;&lt;P&gt;I want select polygons &lt;span class="lia-unicode-emoji" title=":red_heart:"&gt;❤️&lt;/span&gt; ha, them use eliminate tool, &lt;SPAN style="color: #4d4d4d; background-color: #fefefe;"&gt;by merging them with neighboring polygons&amp;nbsp;&lt;SPAN&gt;that have the largest area or the longest shared border and finally save the result in a folder.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #4d4d4d; background-color: #fefefe;"&gt;&lt;SPAN&gt;Doy you know how can I automate it?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #4d4d4d; background-color: #fefefe;"&gt;&lt;SPAN&gt;Thank you&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;# Import arcpy module&lt;BR /&gt;import arcpy&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;# Local variables:&lt;BR /&gt;Rod_inter_Masa_156_16 = "Rod_inter_Masa_156_16"&lt;BR /&gt;Rod_inter_Masa_156_16__2_ = "Rod_inter_Masa_156_16"&lt;BR /&gt;Rod_inter_Masa_156_16_Elimin = "C:\\Users\\info\\Documents\\ArcGIS\\Default.gdb\\Rod_inter_Masa_156_16_Elimin"&lt;BR /&gt;prueba_shp = "C:\\Prueba_subrodal2\\prueba.shp"&lt;/P&gt;&lt;P&gt;# Process: Select Layer By Attribute&lt;BR /&gt;arcpy.SelectLayerByAttribute_management(Rod_inter_Masa_156_16, "NEW_SELECTION", "\"Superfic_1\" &amp;lt;= 3")&lt;/P&gt;&lt;P&gt;# Process: Eliminate&lt;BR /&gt;arcpy.Eliminate_management(Rod_inter_Masa_156_16__2_, Rod_inter_Masa_156_16_Elimin, "LENGTH", "", "")&lt;/P&gt;&lt;P&gt;# Process: Copy Features&lt;BR /&gt;arcpy.CopyFeatures_management(Rod_inter_Masa_156_16_Elimin, prueba_shp, "", "0", "0", "0")&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Jul 2018 09:18:47 GMT</pubDate>
    <dc:creator>Jose_AlbertoNúñez</dc:creator>
    <dc:date>2018-07-24T09:18:47Z</dc:date>
    <item>
      <title>Is it possible to do a geoprocess automatically with all the layers of a folder?</title>
      <link>https://community.esri.com/t5/data-management-questions/is-it-possible-to-do-a-geoprocess-automatically/m-p/224103#M12725</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I have 200 shapefile in a folder. all fo them are similar. I need select by atribute and them aply eliminate tool and save the shapes files.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible to do automatically with all the layers from model builder or arcpy? How can I do?&lt;/P&gt;&lt;P&gt;thnak you very much&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jul 2018 10:50:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/is-it-possible-to-do-a-geoprocess-automatically/m-p/224103#M12725</guid>
      <dc:creator>Jose_AlbertoNúñez</dc:creator>
      <dc:date>2018-07-23T10:50:39Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to do a geoprocess automatically with all the layers of a folder?</title>
      <link>https://community.esri.com/t5/data-management-questions/is-it-possible-to-do-a-geoprocess-automatically/m-p/224104#M12726</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do your process once so you can get the scripting syntax for each step.&lt;/P&gt;&lt;P&gt;Check the documentation on iterators in Modelbuilder if you aren't used to python.&lt;/P&gt;&lt;P&gt;Create a basic model to see if it works once.&amp;nbsp; I would suggest having a separate destination folder from the input folder it you are going to iterate all shapefiles in one folder.&lt;/P&gt;&lt;P&gt;Perhaps get a model started and people can leap in to see whether a model or script would be simpler in your case&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jul 2018 12:26:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/is-it-possible-to-do-a-geoprocess-automatically/m-p/224104#M12726</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2018-07-23T12:26:09Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to do a geoprocess automatically with all the layers of a folder?</title>
      <link>https://community.esri.com/t5/data-management-questions/is-it-possible-to-do-a-geoprocess-automatically/m-p/224105#M12727</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you @Dan Patterson,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #242729; background-color: rgba(248, 248, 248, 0.6);"&gt;.I tried it with Iterate Files in model builder but i can not connect output with the next step (Selec layer by atribute). I use connect icon but only can use precondition option. How can I upload a screenshot to show you?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2018 08:43:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/is-it-possible-to-do-a-geoprocess-automatically/m-p/224105#M12727</guid>
      <dc:creator>Jose_AlbertoNúñez</dc:creator>
      <dc:date>2018-07-24T08:43:17Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to do a geoprocess automatically with all the layers of a folder?</title>
      <link>https://community.esri.com/t5/data-management-questions/is-it-possible-to-do-a-geoprocess-automatically/m-p/224106#M12728</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The easiest is to do a screen grab of the model, then insert it with the 'camera' (insert image) option into the post&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2018 08:59:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/is-it-possible-to-do-a-geoprocess-automatically/m-p/224106#M12728</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2018-07-24T08:59:50Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to do a geoprocess automatically with all the layers of a folder?</title>
      <link>https://community.esri.com/t5/data-management-questions/is-it-possible-to-do-a-geoprocess-automatically/m-p/224107#M12729</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/3116"&gt;Dan Patterson&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;That is I want to do with 190 files. I did with one shp example, its name is "Rod_inter_Masa_156_16.shp"&lt;/P&gt;&lt;P&gt;I want select polygons &lt;span class="lia-unicode-emoji" title=":red_heart:"&gt;❤️&lt;/span&gt; ha, them use eliminate tool, &lt;SPAN style="color: #4d4d4d; background-color: #fefefe;"&gt;by merging them with neighboring polygons&amp;nbsp;&lt;SPAN&gt;that have the largest area or the longest shared border and finally save the result in a folder.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #4d4d4d; background-color: #fefefe;"&gt;&lt;SPAN&gt;Doy you know how can I automate it?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #4d4d4d; background-color: #fefefe;"&gt;&lt;SPAN&gt;Thank you&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;# Import arcpy module&lt;BR /&gt;import arcpy&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;# Local variables:&lt;BR /&gt;Rod_inter_Masa_156_16 = "Rod_inter_Masa_156_16"&lt;BR /&gt;Rod_inter_Masa_156_16__2_ = "Rod_inter_Masa_156_16"&lt;BR /&gt;Rod_inter_Masa_156_16_Elimin = "C:\\Users\\info\\Documents\\ArcGIS\\Default.gdb\\Rod_inter_Masa_156_16_Elimin"&lt;BR /&gt;prueba_shp = "C:\\Prueba_subrodal2\\prueba.shp"&lt;/P&gt;&lt;P&gt;# Process: Select Layer By Attribute&lt;BR /&gt;arcpy.SelectLayerByAttribute_management(Rod_inter_Masa_156_16, "NEW_SELECTION", "\"Superfic_1\" &amp;lt;= 3")&lt;/P&gt;&lt;P&gt;# Process: Eliminate&lt;BR /&gt;arcpy.Eliminate_management(Rod_inter_Masa_156_16__2_, Rod_inter_Masa_156_16_Elimin, "LENGTH", "", "")&lt;/P&gt;&lt;P&gt;# Process: Copy Features&lt;BR /&gt;arcpy.CopyFeatures_management(Rod_inter_Masa_156_16_Elimin, prueba_shp, "", "0", "0", "0")&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2018 09:18:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/is-it-possible-to-do-a-geoprocess-automatically/m-p/224107#M12729</guid>
      <dc:creator>Jose_AlbertoNúñez</dc:creator>
      <dc:date>2018-07-24T09:18:47Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to do a geoprocess automatically with all the layers of a folder?</title>
      <link>https://community.esri.com/t5/data-management-questions/is-it-possible-to-do-a-geoprocess-automatically/m-p/224108#M12730</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried to do it in model builder but unsuccessfully. I can not connect file.shp with select layer by attribute...&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/414906_Model_Builder.JPG" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2018 09:23:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/is-it-possible-to-do-a-geoprocess-automatically/m-p/224108#M12730</guid>
      <dc:creator>Jose_AlbertoNúñez</dc:creator>
      <dc:date>2018-07-24T09:23:24Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to do a geoprocess automatically with all the layers of a folder?</title>
      <link>https://community.esri.com/t5/data-management-questions/is-it-possible-to-do-a-geoprocess-automatically/m-p/224109#M12731</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Completely untested... but basically, set your workspace to the geodatabase which contains your data.&lt;/P&gt;&lt;P&gt;Set an output folder (note the 'raw' formatting)&lt;/P&gt;&lt;P&gt;cycle through the featureclasses, do a select by attributes, then eliminate.&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; arcpy
&lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; os

arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;env&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;workspace &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; "C&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;\\Users\\info\\Documents\\ArcGIS\\Default&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;gdb

fcs &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;ListFeatureClasses&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
out_folder &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; r&lt;SPAN class="string token"&gt;"C:\SomeFolderForOutput"&lt;/SPAN&gt;

&lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; fc &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; featureclasses&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;

&amp;nbsp;&amp;nbsp;&amp;nbsp; out_name &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"{}\\{}_elim.shp"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;format&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;out_folder&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; fc&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;SelectLayerByAttribute_management&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;fc&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"NEW_SELECTION"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"\"Superfic_1\" &amp;lt;= 3"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Eliminate_management&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;fc&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; out_name&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"LENGTH"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;""&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;""&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 10:55:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/is-it-possible-to-do-a-geoprocess-automatically/m-p/224109#M12731</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2021-12-11T10:55:20Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to do a geoprocess automatically with all the layers of a folder?</title>
      <link>https://community.esri.com/t5/data-management-questions/is-it-possible-to-do-a-geoprocess-automatically/m-p/224110#M12732</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/3116"&gt;Dan Patterson&lt;/A&gt;‌ thank you very much.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I did it:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;import arcpy&lt;/P&gt;&lt;P&gt;from arcpy import env&lt;BR /&gt;env.overwriteOutput = True&lt;BR /&gt;import os&lt;/P&gt;&lt;P&gt;arcpy.env.workspace = r"E:\PLANFOR\PD_G000053VA_N\Carto\A_Monre\Tipos_masa\Prueba_subrodal\Rodales_tipmas.gdb"&lt;BR /&gt;fcs = arcpy.ListFeatureClasses()&lt;BR /&gt;out_folder = r"E:\PLANFOR\PD_G000053VA_N\Carto\A_Monre\Tipos_masa\Prueba_subrodal\Salida"&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;for fc in fcs:&lt;/P&gt;&lt;P&gt;out_name = "{}\\{}_elim.shp".format(out_folder, fc)&lt;BR /&gt; arcpy.SelectLayerByAttribute_management(fc, "NEW_SELECTION", "\"Superfic_1\" &amp;lt;= 3")&lt;/P&gt;&lt;P&gt;arcpy.Eliminate_management(fc, out_name, "LENGTH", "", "")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but it is there an error:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/414944_error_py.JPG" /&gt;&lt;/P&gt;&lt;P&gt;I do not know why.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2018 11:16:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/is-it-possible-to-do-a-geoprocess-automatically/m-p/224110#M12732</guid>
      <dc:creator>Jose_AlbertoNúñez</dc:creator>
      <dc:date>2018-07-24T11:16:36Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to do a geoprocess automatically with all the layers of a folder?</title>
      <link>https://community.esri.com/t5/data-management-questions/is-it-possible-to-do-a-geoprocess-automatically/m-p/224111#M12733</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In order to use "&lt;SPAN style="background-color: #ffffff;"&gt;arcpy.SelectLayerByAttribute_management&lt;/SPAN&gt;" the input must be a layer. See the &lt;A href="http://desktop.arcgis.com/en/arcmap/latest/tools/data-management-toolbox/select-layer-by-attribute.htm"&gt;help&lt;/A&gt;:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;EM&gt;&lt;SPAN style="color: #4d4d4d; background-color: #fefefe;"&gt;The input must be a&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #4d4d4d; background-color: #fefefe;"&gt;feature layer&lt;/SPAN&gt;&lt;SPAN style="color: #4d4d4d; background-color: #fefefe;"&gt;&amp;nbsp;or a&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #4d4d4d; background-color: #fefefe;"&gt;table view&lt;/SPAN&gt;&lt;SPAN style="color: #4d4d4d; background-color: #fefefe;"&gt;. The input cannot be a&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #4d4d4d; background-color: #fefefe;"&gt;feature class&lt;/SPAN&gt;&lt;SPAN style="color: #4d4d4d; background-color: #fefefe;"&gt;&amp;nbsp;or&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #4d4d4d; background-color: #fefefe;"&gt;table&lt;/SPAN&gt;&lt;SPAN style="color: #4d4d4d; background-color: #fefefe;"&gt;.&lt;/SPAN&gt;&lt;/EM&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;So you will have to use&amp;nbsp;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/latest/tools/data-management-toolbox/make-feature-layer.htm" title="http://desktop.arcgis.com/en/arcmap/latest/tools/data-management-toolbox/make-feature-layer.htm"&gt;Make Feature Layer—Help | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;before &lt;SPAN style="background-color: #ffffff;"&gt;arcpy.SelectLayerByAttribute_management&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;In&amp;nbsp; ArcGIS Pro the reference to the featureclass can be used and a layer is automatically created for you.&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2018 12:01:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/is-it-possible-to-do-a-geoprocess-automatically/m-p/224111#M12733</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2018-07-24T12:01:52Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to do a geoprocess automatically with all the layers of a folder?</title>
      <link>https://community.esri.com/t5/data-management-questions/is-it-possible-to-do-a-geoprocess-automatically/m-p/224112#M12734</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;good catch... that's what you get for coding blind &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2018 13:17:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/is-it-possible-to-do-a-geoprocess-automatically/m-p/224112#M12734</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2018-07-24T13:17:00Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to do a geoprocess automatically with all the layers of a folder?</title>
      <link>https://community.esri.com/t5/data-management-questions/is-it-possible-to-do-a-geoprocess-automatically/m-p/224113#M12735</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;so before the select by attributes you have to squeeze in a line&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;MakeFeatureLayer_management&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;fc&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"fc_lyr"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;then change 'fc' to 'fc_layer' in the selectbyattributes line (going blindly again)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 10:55:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/is-it-possible-to-do-a-geoprocess-automatically/m-p/224113#M12735</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2021-12-11T10:55:22Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to do a geoprocess automatically with all the layers of a folder?</title>
      <link>https://community.esri.com/t5/data-management-questions/is-it-possible-to-do-a-geoprocess-automatically/m-p/224114#M12736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi @Dan Patterson&lt;/P&gt;&lt;P&gt;I think understand you:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;import arcpy&lt;/P&gt;&lt;P&gt;from arcpy import env&lt;BR /&gt;env.overwriteOutput = True&lt;BR /&gt;import os&lt;/P&gt;&lt;P&gt;arcpy.env.workspace = r"E:\PLANFOR\PD_G000053VA_N\Carto\A_Monre\Tipos_masa\Prueba_subrodal\Rodales_tipmas.gdb"&lt;BR /&gt;fcs = arcpy.ListFeatureClasses()&lt;BR /&gt;out_folder = r"E:\PLANFOR\PD_G000053VA_N\Carto\A_Monre\Tipos_masa\Prueba_subrodal\Salida"&lt;BR /&gt;for fc in fcs:&lt;/P&gt;&lt;P&gt;arcpy.MakeFeatureLayer_management(fc,"fc_lyr")&lt;/P&gt;&lt;P&gt;arcpy.SelectLayerByAttribute_management(fc_lyr, "NEW_SELECTION", "\"Superfic_1\" &amp;lt;= 3")&lt;/P&gt;&lt;P&gt;out_name = "{}\\{}_elim.shp".format(out_folder, fc_lyr)&lt;/P&gt;&lt;P&gt;arcpy.Eliminate_management(fc_lyr, out_name, "LENGTH", "", "")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I have a error. I do not find it. Do you see it? Thank you very much&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/415039_error_py2.JPG" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2018 07:01:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/is-it-possible-to-do-a-geoprocess-automatically/m-p/224114#M12736</guid>
      <dc:creator>Jose_AlbertoNúñez</dc:creator>
      <dc:date>2018-07-25T07:01:33Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to do a geoprocess automatically with all the layers of a folder?</title>
      <link>https://community.esri.com/t5/data-management-questions/is-it-possible-to-do-a-geoprocess-automatically/m-p/224115#M12737</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In python code blocks like this loop are marked by indentation of the code, see Dan's original code snippet.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2018 07:37:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/is-it-possible-to-do-a-geoprocess-automatically/m-p/224115#M12737</guid>
      <dc:creator>NeilAyres</dc:creator>
      <dc:date>2018-07-25T07:37:32Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to do a geoprocess automatically with all the layers of a folder?</title>
      <link>https://community.esri.com/t5/data-management-questions/is-it-possible-to-do-a-geoprocess-automatically/m-p/224116#M12738</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So those 4 lines following "for fc in fcs:"&lt;/P&gt;&lt;P&gt;should be indented, usually 4 spaces&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2018 07:38:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/is-it-possible-to-do-a-geoprocess-automatically/m-p/224116#M12738</guid>
      <dc:creator>NeilAyres</dc:creator>
      <dc:date>2018-07-25T07:38:50Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to do a geoprocess automatically with all the layers of a folder?</title>
      <link>https://community.esri.com/t5/data-management-questions/is-it-possible-to-do-a-geoprocess-automatically/m-p/224117#M12739</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;@Neil Ayres @Dan Patterson&lt;/P&gt;&lt;P&gt;I use spaces, I did not that are so important in python, sorry. I think that know is correct but i have a new error, &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/415085_error_py4.JPG" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2018 08:01:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/is-it-possible-to-do-a-geoprocess-automatically/m-p/224117#M12739</guid>
      <dc:creator>Jose_AlbertoNúñez</dc:creator>
      <dc:date>2018-07-25T08:01:20Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to do a geoprocess automatically with all the layers of a folder?</title>
      <link>https://community.esri.com/t5/data-management-questions/is-it-possible-to-do-a-geoprocess-automatically/m-p/224118#M12740</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;"fc_lyr"&amp;nbsp; in quotes do the same for it on the last line&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2018 08:22:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/is-it-possible-to-do-a-geoprocess-automatically/m-p/224118#M12740</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2018-07-25T08:22:07Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to do a geoprocess automatically with all the layers of a folder?</title>
      <link>https://community.esri.com/t5/data-management-questions/is-it-possible-to-do-a-geoprocess-automatically/m-p/224119#M12741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi @Dan Patterson.&lt;/P&gt;&lt;P&gt;I think that the script does not generate errors. I think it performs the same process with all the layers (190). The problem is that since the output file has a unique name "fc_lyr", all the files are rewritten and at the end there is a single file instead of 190. How could I do it to keep the original name files + a sequence so that it does not overwrite?&lt;/P&gt;&lt;P&gt;Thank you very much&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2018 08:51:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/is-it-possible-to-do-a-geoprocess-automatically/m-p/224119#M12741</guid>
      <dc:creator>Jose_AlbertoNúñez</dc:creator>
      <dc:date>2018-07-25T08:51:00Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to do a geoprocess automatically with all the layers of a folder?</title>
      <link>https://community.esri.com/t5/data-management-questions/is-it-possible-to-do-a-geoprocess-automatically/m-p/224120#M12742</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in the out_name&amp;nbsp; line...the... fc_layer ...there should be... fc &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;we got carried away replacing fc with fc_layer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2018 08:56:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/is-it-possible-to-do-a-geoprocess-automatically/m-p/224120#M12742</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2018-07-25T08:56:57Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to do a geoprocess automatically with all the layers of a folder?</title>
      <link>https://community.esri.com/t5/data-management-questions/is-it-possible-to-do-a-geoprocess-automatically/m-p/224121#M12743</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Excellent !! I think it works perfectly&lt;BR /&gt;Thank you very much to all the people who have helped me, especially @Dan Patterson.&lt;BR /&gt;This is a problem that I had in my workflow and that saved me a lot of work. So far I was doing the process manually.&lt;BR /&gt;Thank you!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2018 09:16:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/is-it-possible-to-do-a-geoprocess-automatically/m-p/224121#M12743</guid>
      <dc:creator>Jose_AlbertoNúñez</dc:creator>
      <dc:date>2018-07-25T09:16:17Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to do a geoprocess automatically with all the layers of a folder?</title>
      <link>https://community.esri.com/t5/data-management-questions/is-it-possible-to-do-a-geoprocess-automatically/m-p/224122#M12744</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Glad it worked out Jose&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jul 2018 00:04:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/is-it-possible-to-do-a-geoprocess-automatically/m-p/224122#M12744</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2018-07-26T00:04:00Z</dc:date>
    </item>
  </channel>
</rss>

