<?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: Calculate Field problem. in ModelBuilder Questions</title>
    <link>https://community.esri.com/t5/modelbuilder-questions/calculate-field-problem/m-p/722975#M2718</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Glad to be of help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris Donohue, GISP&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Jan 2017 20:02:39 GMT</pubDate>
    <dc:creator>ChrisDonohue__GISP</dc:creator>
    <dc:date>2017-01-12T20:02:39Z</dc:date>
    <item>
      <title>Calculate Field problem.</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/calculate-field-problem/m-p/722969#M2712</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR style="background-color: #ffffff;" /&gt;&lt;BR style="background-color: #ffffff;" /&gt;&lt;SPAN style="background-color: #ffffff; border: 0px; font-size: 14px;"&gt;Hi everyone, I'm making a model that basically selects the links that must change the value of one field, those links are selected by the proximity to the line feature, there are 108 line features thats why the iterator.&lt;/SPAN&gt;&lt;BR style="background-color: #ffffff;" /&gt;&lt;BR style="background-color: #ffffff;" /&gt;&lt;SPAN style="background-color: #ffffff; border: 0px; font-size: 14px;"&gt;my problem is: the value that I have to put in the field is contained in each of the 108 features lines, with the tool get field I reach the value, but for some reason I don't know Calculate field tool do not recive the variable as a input, (only when the data type is variable or string it recives it, my value is double)&lt;/SPAN&gt;&lt;BR style="background-color: #ffffff;" /&gt;&lt;BR style="background-color: #ffffff;" /&gt;&lt;SPAN style="background-color: #ffffff; border: 0px; font-size: 14px;"&gt;Can you please show me the problem to fix it ?&lt;/SPAN&gt;&lt;BR style="background-color: #ffffff;" /&gt;&lt;BR style="background-color: #ffffff;" /&gt;&lt;SPAN style="background-color: #ffffff; border: 0px; font-size: 14px;"&gt;thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jan 2017 16:17:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/calculate-field-problem/m-p/722969#M2712</guid>
      <dc:creator>Maximiliano_A_Bernal_Giraldo</dc:creator>
      <dc:date>2017-01-12T16:17:11Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Field problem.</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/calculate-field-problem/m-p/722970#M2713</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My very first thought would be that it is a &lt;EM&gt;casting&lt;/EM&gt; issue.&amp;nbsp; However, that's just a guess.&amp;nbsp; Can you post a screenshot of what the Calculate Field Dialog box information is?&amp;nbsp; I.e. what information was input.&amp;nbsp; Can you provide a screenshot?&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="300440" alt="" class="image-1 jive-image j-img-original" src="/legacyfs/online/300440_calculate field dialog box.jpg" style="width: 620px; height: 551px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris Donohue, GISP&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jan 2017 17:33:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/calculate-field-problem/m-p/722970#M2713</guid>
      <dc:creator>ChrisDonohue__GISP</dc:creator>
      <dc:date>2017-01-12T17:33:35Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Field problem.</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/calculate-field-problem/m-p/722971#M2714</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/300449_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jan 2017 17:59:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/calculate-field-problem/m-p/722971#M2714</guid>
      <dc:creator>Maximiliano_A_Bernal_Giraldo</dc:creator>
      <dc:date>2017-01-12T17:59:15Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Field problem.</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/calculate-field-problem/m-p/722972#M2715</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As you see because I can't make the conection between the output of "get field value" and "Calculate field" I can't assign the value to its corresponding field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;even further I think the main problem is Calculate field tool needs all the the values to fill the field are in the same table, and don't let they come from external sources, but it's just my opinion, perhaps it is a way I don't know.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jan 2017 18:06:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/calculate-field-problem/m-p/722972#M2715</guid>
      <dc:creator>Maximiliano_A_Bernal_Giraldo</dc:creator>
      <dc:date>2017-01-12T18:06:10Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Field problem.</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/calculate-field-problem/m-p/722973#M2716</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What appears to be needed is a the use of an&lt;EM&gt; In-line variable&amp;nbsp;&lt;/EM&gt;in the &lt;EM&gt;Calculate Field&lt;/EM&gt; tool so you can use the result of the &lt;EM&gt;Get Field Value&lt;/EM&gt;.&amp;nbsp; You will have to code this manually - it won't be available by pulldown.&amp;nbsp; So in your Expression in the &lt;EM&gt;Get Field Value&lt;/EM&gt; tool, it would look something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;fieldname = &lt;STRONG&gt;%Vel%&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The key is the percentage symbols on either side of the variable.&amp;nbsp; In the model you posted, the output of the Get Field Value was called &lt;EM&gt;Vel&lt;/EM&gt;, so one can tap its value by using &lt;EM&gt;%Vel%&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From the &lt;EM&gt;Get Field Value&lt;/EM&gt; tool help:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;The Get Field Value tool gets the first value from a table of the specified field, and the value is then used as an &lt;A class="" href="http://resources.arcgis.com/en/help/main/10.2/002w/002w0000001t000000.htm" rel="/en/help/main/10.2/002w/002w0000001t000000.htm"&gt;in-line variable&lt;/A&gt; in the expression of the &lt;A class="" href="http://resources.arcgis.com/en/help/main/10.2/0017/00170000004m000000.htm" rel="/en/help/main/10.2/0017/00170000004m000000.htm"&gt;Calculate Field&lt;/A&gt; tool to find the percentage area of each polygon.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://resources.arcgis.com/en/help/main/10.2/index.html#/Examples_of_using_Model_Only_tools_in_ModelBuilder/00400000001m000000/ESRI_SECTION1_C6447050F5D34A8DA2121D405EC52F69/" title="http://resources.arcgis.com/en/help/main/10.2/index.html#/Examples_of_using_Model_Only_tools_in_ModelBuilder/00400000001m000000/ESRI_SECTION1_C6447050F5D34A8DA2121D405EC52F69/"&gt;ArcGIS Help (10.2, 10.2.1, and 10.2.2)&lt;/A&gt; - Examples of Modelbuilder-only tools&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://resources.arcgis.com/en/help/main/10.2/index.html#//002w0000001t000000" title="http://resources.arcgis.com/en/help/main/10.2/index.html#//002w0000001t000000"&gt;ArcGIS Help (10.2, 10.2.1, and 10.2.2)&lt;/A&gt; - A quick tour of Inline Variable Substitution&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris Donohue, GISP&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jan 2017 19:31:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/calculate-field-problem/m-p/722973#M2716</guid>
      <dc:creator>ChrisDonohue__GISP</dc:creator>
      <dc:date>2017-01-12T19:31:43Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Field problem.</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/calculate-field-problem/m-p/722974#M2717</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank's man, it work&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jan 2017 19:55:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/calculate-field-problem/m-p/722974#M2717</guid>
      <dc:creator>Maximiliano_A_Bernal_Giraldo</dc:creator>
      <dc:date>2017-01-12T19:55:20Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Field problem.</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/calculate-field-problem/m-p/722975#M2718</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Glad to be of help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris Donohue, GISP&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jan 2017 20:02:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/calculate-field-problem/m-p/722975#M2718</guid>
      <dc:creator>ChrisDonohue__GISP</dc:creator>
      <dc:date>2017-01-12T20:02:39Z</dc:date>
    </item>
  </channel>
</rss>

