<?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: Select by Attribute then Calculate field based on selection in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/select-by-attribute-then-calculate-field-based-on/m-p/97119#M3348</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It sounds as if you'll just want to use the Select by Attribute tool three times in your model to select for the three different feature types.&amp;nbsp; After each individual selection, you'll want to use the Calculate Field tool to calculate whatever values you need to for the inspection date.&amp;nbsp; If you have any selected features in a table, any operation you run will only run on those selected features.&amp;nbsp; The default selection method of NEW_SELECTION will make sure that each successive selection will overwrite the previous one.&amp;nbsp; A rough model showing the process is included below.&amp;nbsp; Is that something that makes sense for your workflow, or are you looking for something else?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]14805[/ATTACH]&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 31 May 2012 14:55:47 GMT</pubDate>
    <dc:creator>JonathanQuinn</dc:creator>
    <dc:date>2012-05-31T14:55:47Z</dc:date>
    <item>
      <title>Select by Attribute then Calculate field based on selection</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/select-by-attribute-then-calculate-field-based-on/m-p/97118#M3347</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm attempting to rebuild a VBA macro that I have using Model Builder but ran into a stumbling block.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a dateset that I need to calculate the next inspection date for each feature, but that inspection date will vary based on what type of feature it is.&amp;nbsp; Feature type "1" is inspected again in 365 days, feature type "2" is inspected in 180 days, and feature type "3" is inspected in 120 days.&amp;nbsp; Ideally I simply select the features that match a type, calculate the next inspection date, then run the process again for types 2 and 3 all within the same shapefile.&amp;nbsp; I'd prefer not to select the features and export each type into a new table (thus resulting in 3 new tables when they need to all be in the same table).&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas on how I can accomplish this in Model Builder?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Stephanie&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 May 2012 13:35:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/select-by-attribute-then-calculate-field-based-on/m-p/97118#M3347</guid>
      <dc:creator>StephanieMacuga</dc:creator>
      <dc:date>2012-05-31T13:35:52Z</dc:date>
    </item>
    <item>
      <title>Re: Select by Attribute then Calculate field based on selection</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/select-by-attribute-then-calculate-field-based-on/m-p/97119#M3348</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It sounds as if you'll just want to use the Select by Attribute tool three times in your model to select for the three different feature types.&amp;nbsp; After each individual selection, you'll want to use the Calculate Field tool to calculate whatever values you need to for the inspection date.&amp;nbsp; If you have any selected features in a table, any operation you run will only run on those selected features.&amp;nbsp; The default selection method of NEW_SELECTION will make sure that each successive selection will overwrite the previous one.&amp;nbsp; A rough model showing the process is included below.&amp;nbsp; Is that something that makes sense for your workflow, or are you looking for something else?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]14805[/ATTACH]&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 May 2012 14:55:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/select-by-attribute-then-calculate-field-based-on/m-p/97119#M3348</guid>
      <dc:creator>JonathanQuinn</dc:creator>
      <dc:date>2012-05-31T14:55:47Z</dc:date>
    </item>
    <item>
      <title>Re: Select by Attribute then Calculate field based on selection</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/select-by-attribute-then-calculate-field-based-on/m-p/97120#M3349</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That did work very well for me.&amp;nbsp; I had run some geoprocessing events on the dataset prior, so I did have to run "Make Feature Layer" before I could start the selections/calculate field processing.&amp;nbsp; In the end though, it works beautifully. Thanks for your help &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jun 2012 13:34:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/select-by-attribute-then-calculate-field-based-on/m-p/97120#M3349</guid>
      <dc:creator>StephanieMacuga</dc:creator>
      <dc:date>2012-06-01T13:34:03Z</dc:date>
    </item>
  </channel>
</rss>

