<?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: Modelbuilder: calculate field with text of feature name in ModelBuilder Questions</title>
    <link>https://community.esri.com/t5/modelbuilder-questions/modelbuilder-calculate-field-with-text-of-feature/m-p/781280#M2458</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys, thanks so much for the responses.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I haven't&amp;nbsp;had any luck using the "Parse Path" tool, but what did work in the end for my purposes was the "Get Field Value" tool (a Modelbuilder -only tool).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This allowed me to refer back to the original dataset, which contained a date column, and "Calculate Field" on a field created in the new dataset using the "gotten" value.&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/364571_pastedImage_2.png" style="width: 620px; height: 475px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Jul 2017 23:15:08 GMT</pubDate>
    <dc:creator>RandyMorris</dc:creator>
    <dc:date>2017-07-26T23:15:08Z</dc:date>
    <item>
      <title>Modelbuilder: calculate field with text of feature name</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/modelbuilder-calculate-field-with-text-of-feature/m-p/781277#M2455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have tried to use the tool found here:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://catalog.data.gov/dataset/arcgis-tool-inserts-file-name-into-attribute-table" title="https://catalog.data.gov/dataset/arcgis-tool-inserts-file-name-into-attribute-table"&gt;ArcGIS Tool: Inserts file name into attribute table - Data.gov&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but it doesn't work for me. &amp;nbsp;I need to allocate&amp;nbsp;the feature name as a text cell value, so that I can then calculate other fields using&amp;nbsp;that cell value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am running 10.4.1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If anyone can give me some help I would greatly appreciate it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jul 2017 16:55:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/modelbuilder-calculate-field-with-text-of-feature/m-p/781277#M2455</guid>
      <dc:creator>RandyMorris</dc:creator>
      <dc:date>2017-07-26T16:55:44Z</dc:date>
    </item>
    <item>
      <title>Re: Modelbuilder: calculate field with text of feature name</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/modelbuilder-calculate-field-with-text-of-feature/m-p/781278#M2456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That model tool looks pretty hard coded to add a file name text field to all the feature classes in a workspace.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you describe more fully what you are trying to do? Add a text field with the file name for one feature class?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jul 2017 22:49:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/modelbuilder-calculate-field-with-text-of-feature/m-p/781278#M2456</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2017-07-26T22:49:23Z</dc:date>
    </item>
    <item>
      <title>Re: Modelbuilder: calculate field with text of feature name</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/modelbuilder-calculate-field-with-text-of-feature/m-p/781279#M2457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think I can answer your question, which I am assuming is how to do this in Model Builder.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Parse Path tool can be used to get the name from the input, and you can use the Calculate Field tool to calculate that value using a Python expression like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;r"%Dataset name%"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where&amp;nbsp;&lt;EM&gt;Dataset name&lt;/EM&gt; is the name of your output from the Parse Path tool.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jul 2017 22:58:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/modelbuilder-calculate-field-with-text-of-feature/m-p/781279#M2457</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2017-07-26T22:58:21Z</dc:date>
    </item>
    <item>
      <title>Re: Modelbuilder: calculate field with text of feature name</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/modelbuilder-calculate-field-with-text-of-feature/m-p/781280#M2458</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys, thanks so much for the responses.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I haven't&amp;nbsp;had any luck using the "Parse Path" tool, but what did work in the end for my purposes was the "Get Field Value" tool (a Modelbuilder -only tool).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This allowed me to refer back to the original dataset, which contained a date column, and "Calculate Field" on a field created in the new dataset using the "gotten" value.&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/364571_pastedImage_2.png" style="width: 620px; height: 475px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jul 2017 23:15:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/modelbuilder-calculate-field-with-text-of-feature/m-p/781280#M2458</guid>
      <dc:creator>RandyMorris</dc:creator>
      <dc:date>2017-07-26T23:15:08Z</dc:date>
    </item>
    <item>
      <title>Re: Modelbuilder: calculate field with text of feature name</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/modelbuilder-calculate-field-with-text-of-feature/m-p/781281#M2459</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;SPAN style="background-color: #ffffff;"&gt;I haven't&amp;nbsp;had any luck using the "Parse Path" tool&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;What was the problem? I seem to get the dataset name fine when I specify the NAME parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Executing (Parse Path): ParsePath C:\Users\cprice\Documents\ArcGIS\Default.gdb\footprints NAME&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Start Time: Wed Jul 26 17:42:39 2017&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Succeeded at Wed Jul 26 17:42:39 2017 (Elapsed Time: 0.00 seconds)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Executing (Calculate Value): CalculateValue r"footprints" # Variant&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Start Time: Wed Jul 26 17:43:02 2017&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Value = footprints&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Succeeded at Wed Jul 26 17:43:02 2017 (Elapsed Time: 0.09 seconds)&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jul 2017 23:43:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/modelbuilder-calculate-field-with-text-of-feature/m-p/781281#M2459</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2017-07-26T23:43:47Z</dc:date>
    </item>
    <item>
      <title>Re: Modelbuilder: calculate field with text of feature name</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/modelbuilder-calculate-field-with-text-of-feature/m-p/781282#M2460</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #222222; background-color: #ffffff; font-size: 12.8px;"&gt;When I tried to use the Parse Path tool, it just constantly failed to use the NAME value to calculate the field; no clue why.&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV style="color: #222222; background-color: #ffffff; font-size: 12.8px;"&gt; &lt;/DIV&gt;&lt;DIV style="color: #222222; background-color: #ffffff; font-size: 12.8px;"&gt;That's why I was hoping maybe one of you guys could enlighten the process, like maybe I was putting in a wrong value somewhere.&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jul 2017 17:07:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/modelbuilder-calculate-field-with-text-of-feature/m-p/781282#M2460</guid>
      <dc:creator>RandyMorris</dc:creator>
      <dc:date>2017-07-27T17:07:38Z</dc:date>
    </item>
    <item>
      <title>Re: Modelbuilder: calculate field with text of feature name</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/modelbuilder-calculate-field-with-text-of-feature/m-p/781283#M2461</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The Parse Path tool should get a dataset path (ie full path) input -- so it isn't the correct tool for the job, because the iterator you are using (Iterate Feature) doesn't generate dataset paths, it generates a selected set on a layer. The Get Field Value tool pulls data out a field from the first row in the selected set.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Aug 2017 02:10:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/modelbuilder-calculate-field-with-text-of-feature/m-p/781283#M2461</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2017-08-07T02:10:21Z</dc:date>
    </item>
  </channel>
</rss>

