<?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 Iterating through a Geodatabase using a script to identify feature class names in ModelBuilder Questions</title>
    <link>https://community.esri.com/t5/modelbuilder-questions/iterating-through-a-geodatabase-using-a-script-to/m-p/828665#M2382</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to create layers from feature classes in a geodatabase and ultimately applying standard symbology at the end. To do this I started a model with an iterator running through each feature class, and with a script, checking the name of each feature class and&amp;nbsp;seeing if it matches one of the feature class names&amp;nbsp;on the right side of the model. &amp;nbsp;I am stuck at incorporating the script into the model. &amp;nbsp;Any help would be appreciated. &amp;nbsp;My started script and model are below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;def namechk(int):&lt;BR /&gt;&amp;nbsp; &amp;nbsp;if str Name == "Survey_Calculated_Boundary_Monument":&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; return 1&lt;BR /&gt;&amp;nbsp; &amp;nbsp;else:&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; return 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/361406_pastedImage_1.png" style="width: 620px; height: 290px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Jul 2017 20:37:28 GMT</pubDate>
    <dc:creator>MattDeveney</dc:creator>
    <dc:date>2017-07-10T20:37:28Z</dc:date>
    <item>
      <title>Iterating through a Geodatabase using a script to identify feature class names</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/iterating-through-a-geodatabase-using-a-script-to/m-p/828665#M2382</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to create layers from feature classes in a geodatabase and ultimately applying standard symbology at the end. To do this I started a model with an iterator running through each feature class, and with a script, checking the name of each feature class and&amp;nbsp;seeing if it matches one of the feature class names&amp;nbsp;on the right side of the model. &amp;nbsp;I am stuck at incorporating the script into the model. &amp;nbsp;Any help would be appreciated. &amp;nbsp;My started script and model are below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;def namechk(int):&lt;BR /&gt;&amp;nbsp; &amp;nbsp;if str Name == "Survey_Calculated_Boundary_Monument":&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; return 1&lt;BR /&gt;&amp;nbsp; &amp;nbsp;else:&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; return 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/361406_pastedImage_1.png" style="width: 620px; height: 290px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jul 2017 20:37:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/iterating-through-a-geodatabase-using-a-script-to/m-p/828665#M2382</guid>
      <dc:creator>MattDeveney</dc:creator>
      <dc:date>2017-07-10T20:37:28Z</dc:date>
    </item>
  </channel>
</rss>

