<?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: Model Builder Calculate field in ModelBuilder Questions</title>
    <link>https://community.esri.com/t5/modelbuilder-questions/model-builder-calculate-field/m-p/797849#M1553</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jacob, you should not use the quotes I led your wrong there. The quotes get passed literally so it looks like you are trying to calculate a string into a numeric field in the Calculate Field tool.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is inside the %'s gets passed as if you typed it into the tool, so if Distance is 50, you should add a field buf%Distance% which is seen by Add FIeld as buf50.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are entering a buffer distance as linear unit ie 50 feet, you need to manipulate this string with Calculate Value, for example use the expression "%Distance%".split()[0] to get 50 out.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Oct 2018 04:17:47 GMT</pubDate>
    <dc:creator>curtvprice</dc:creator>
    <dc:date>2018-10-11T04:17:47Z</dc:date>
    <item>
      <title>Model Builder Calculate field</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/model-builder-calculate-field/m-p/797844#M1548</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a model that has a buffer distance as a parameter. In the attribute table I would like to&amp;nbsp;show this user inputted value. How do I calculate field based on a parameter?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Oct 2018 18:22:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/model-builder-calculate-field/m-p/797844#M1548</guid>
      <dc:creator>JacobZumwalt</dc:creator>
      <dc:date>2018-10-02T18:22:41Z</dc:date>
    </item>
    <item>
      <title>Re: Model Builder Calculate field</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/model-builder-calculate-field/m-p/797845#M1549</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To calculate field to a parameter, you use the model variable in the Calculate Field expression. At runtime, the model variable get substituted in before the Calculate Field tool runs.&lt;/P&gt;&lt;PRE class="language-python line-numbers"&gt;&lt;CODE&gt;&lt;SPAN class="string token"&gt;"%buffer size%"&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Oct 2018 04:30:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/model-builder-calculate-field/m-p/797845#M1549</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2018-10-05T04:30:37Z</dc:date>
    </item>
    <item>
      <title>Re: Model Builder Calculate field</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/model-builder-calculate-field/m-p/797846#M1550</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would like to have this field be "dynamic" and update itself by what the user inputs as a buffer value, i.e 5ft&amp;nbsp; 10m or 20yds.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Oct 2018 20:08:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/model-builder-calculate-field/m-p/797846#M1550</guid>
      <dc:creator>JacobZumwalt</dc:creator>
      <dc:date>2018-10-05T20:08:38Z</dc:date>
    </item>
    <item>
      <title>Re: Model Builder Calculate field</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/model-builder-calculate-field/m-p/797847#M1551</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See example:&amp;nbsp;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/10.3/analyze/modelbuilder/examples-of-inline-model-variable-substitution.htm#ESRI_SECTION1_88436C8094BD4753AC4C6AD067242A75" title="http://desktop.arcgis.com/en/arcmap/10.3/analyze/modelbuilder/examples-of-inline-model-variable-substitution.htm#ESRI_SECTION1_88436C8094BD4753AC4C6AD067242A75"&gt;Examples of inline model variable substitution—Help | ArcGIS for Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="http://desktop.arcgis.com/en/arcmap/10.3/analyze/modelbuilder/GUID-CE0BCC4E-88D5-40A7-A1A9-07340F6628EE-web.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Oct 2018 20:52:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/model-builder-calculate-field/m-p/797847#M1551</guid>
      <dc:creator>DarrenWiens2</dc:creator>
      <dc:date>2018-10-05T20:52:40Z</dc:date>
    </item>
    <item>
      <title>Re: Model Builder Calculate field</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/model-builder-calculate-field/m-p/797848#M1552</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Darren,&lt;/P&gt;&lt;P&gt;I am getting stuck with the variable substitution. My parameters are the feature class and a buffer distance of 10 feet. My expression for calculating the field value is "%Distance%", which is derived from the user parameter. What should my expression be? SQL, String, etc.&lt;/P&gt;&lt;P&gt;Thanks again&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/423815_Capture.PNG" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Oct 2018 23:34:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/model-builder-calculate-field/m-p/797848#M1552</guid>
      <dc:creator>JacobZumwalt</dc:creator>
      <dc:date>2018-10-05T23:34:54Z</dc:date>
    </item>
    <item>
      <title>Re: Model Builder Calculate field</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/model-builder-calculate-field/m-p/797849#M1553</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jacob, you should not use the quotes I led your wrong there. The quotes get passed literally so it looks like you are trying to calculate a string into a numeric field in the Calculate Field tool.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is inside the %'s gets passed as if you typed it into the tool, so if Distance is 50, you should add a field buf%Distance% which is seen by Add FIeld as buf50.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are entering a buffer distance as linear unit ie 50 feet, you need to manipulate this string with Calculate Value, for example use the expression "%Distance%".split()[0] to get 50 out.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Oct 2018 04:17:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/model-builder-calculate-field/m-p/797849#M1553</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2018-10-11T04:17:47Z</dc:date>
    </item>
  </channel>
</rss>

