<?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: Using value from dbase table input for Field Calculation in Model Builder in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/using-value-from-dbase-table-input-for-field/m-p/311334#M10765</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Does not work because the Calculate Field expression cannot handle the variable as an input parameter (very frustrating!). &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;BUT - a workaround is creating a new field in the shapefile, calc all records with same value ("1"), summarizing based on the field - output dbf has a single record with the total area. Now I can use the ADDJOIN tool to create a join between the shapefile and the dbf. Once joined, I have the total area for easy use in the Calculate Field expression.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 Aug 2010 14:23:47 GMT</pubDate>
    <dc:creator>SheriNorton</dc:creator>
    <dc:date>2010-08-20T14:23:47Z</dc:date>
    <item>
      <title>Using value from dbase table input for Field Calculation in Model Builder</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/using-value-from-dbase-table-input-for-field/m-p/311329#M10760</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;My model uses &lt;/SPAN&gt;&lt;STRONG&gt;Summary Statistics&lt;/STRONG&gt;&lt;SPAN&gt; to generate an output dbase table with a field containing a single record with the total area of the input fields of a feature class. The final step of my model uses the &lt;/SPAN&gt;&lt;STRONG&gt;Calculate Field&lt;/STRONG&gt;&lt;SPAN&gt; tool and needs to "read" this total area value of the dbase table in the expression. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a way to assign the value this record/field in the dbase table to a variable (if so, what type?) and then use in the expression? What is the syntax for incorporating the variable?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;PERCENT = (Shape_Area*100)/totalarea .... where "totalarea" is the variable with the dbase value&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jul 2010 17:18:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/using-value-from-dbase-table-input-for-field/m-p/311329#M10760</guid>
      <dc:creator>SheriNorton</dc:creator>
      <dc:date>2010-07-29T17:18:15Z</dc:date>
    </item>
    <item>
      <title>Re: Using value from dbase table input for Field Calculation in Model Builder</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/using-value-from-dbase-table-input-for-field/m-p/311330#M10761</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Sheri,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;see if this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;PERCENT = (Shape_Area*100)/ !totalarea!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;works, provided that the dBASE field name is totalarea. If not, replace it with the field's name whose value you want to use.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To access a field's value Python bookends the field name&amp;nbsp; with an exclamation mark like so: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;!fieldName!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Barbara Bicking&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jul 2010 21:02:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/using-value-from-dbase-table-input-for-field/m-p/311330#M10761</guid>
      <dc:creator>BBicking1</dc:creator>
      <dc:date>2010-07-29T21:02:57Z</dc:date>
    </item>
    <item>
      <title>Re: Using value from dbase table input for Field Calculation in Model Builder</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/using-value-from-dbase-table-input-for-field/m-p/311331#M10762</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Barbara - I'll give it a shot.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jul 2010 12:09:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/using-value-from-dbase-table-input-for-field/m-p/311331#M10762</guid>
      <dc:creator>SheriNorton</dc:creator>
      <dc:date>2010-07-30T12:09:00Z</dc:date>
    </item>
    <item>
      <title>Re: Using value from dbase table input for Field Calculation in Model Builder</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/using-value-from-dbase-table-input-for-field/m-p/311332#M10763</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Sheri,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Did this end up working?&amp;nbsp; I have a model where at one part Summary Statistics are created for a feature class, then later on I create a new field and would like to calculate the new field by taking the summary field and dividing it by a constant.&amp;nbsp; However, I cannot complete the Calculate Field tool in the model as the model does not recognize that the summary field exists.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I was hoping to know if the method worked, so I could write an expression for the Calculate Field tool using the exclimation points.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Aug 2010 16:38:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/using-value-from-dbase-table-input-for-field/m-p/311332#M10763</guid>
      <dc:creator>DanielLusher</dc:creator>
      <dc:date>2010-08-10T16:38:54Z</dc:date>
    </item>
    <item>
      <title>Re: Using value from dbase table input for Field Calculation in Model Builder</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/using-value-from-dbase-table-input-for-field/m-p/311333#M10764</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Got a bit farther now that ArcGIS 10 is installed. I used the &lt;/SPAN&gt;&lt;STRONG&gt;Get Field Value &lt;/STRONG&gt;&lt;SPAN&gt;to generate a variable to hold the value (total area from the summary statistics DBF table). But when I tried running the model using this variable ("totalarea") an error occurred:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;All calculated values were invalid and none of the rows have been updated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kind of stumped now. Does anyone know if ESRI tech support will provide assistance for basic paramter flow? I just need to figure out how to get the variable passed correctly into the Calculate Field expression. Here's what's in the expression now: &lt;/SPAN&gt;&lt;STRONG&gt;( [Shape_Area] * 100) / TotalArea&lt;/STRONG&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Aug 2010 17:07:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/using-value-from-dbase-table-input-for-field/m-p/311333#M10764</guid>
      <dc:creator>SheriNorton</dc:creator>
      <dc:date>2010-08-10T17:07:54Z</dc:date>
    </item>
    <item>
      <title>Re: Using value from dbase table input for Field Calculation in Model Builder</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/using-value-from-dbase-table-input-for-field/m-p/311334#M10765</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Does not work because the Calculate Field expression cannot handle the variable as an input parameter (very frustrating!). &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;BUT - a workaround is creating a new field in the shapefile, calc all records with same value ("1"), summarizing based on the field - output dbf has a single record with the total area. Now I can use the ADDJOIN tool to create a join between the shapefile and the dbf. Once joined, I have the total area for easy use in the Calculate Field expression.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Aug 2010 14:23:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/using-value-from-dbase-table-input-for-field/m-p/311334#M10765</guid>
      <dc:creator>SheriNorton</dc:creator>
      <dc:date>2010-08-20T14:23:47Z</dc:date>
    </item>
    <item>
      <title>Re: Using value from dbase table input for Field Calculation in Model Builder</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/using-value-from-dbase-table-input-for-field/m-p/311335#M10766</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can use variable substitution in ModelBuilder.&amp;nbsp; To see an example using Calculate Value, go to "Example 4" in the following doc: &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/Examples_of_inline_model_variable_substitution/002w0000005w000000/"&gt;http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/Examples_of_inline_model_variable_substitution/002w0000005w000000/&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Aug 2010 22:15:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/using-value-from-dbase-table-input-for-field/m-p/311335#M10766</guid>
      <dc:creator>DaleHoneycutt</dc:creator>
      <dc:date>2010-08-20T22:15:18Z</dc:date>
    </item>
  </channel>
</rss>

