<?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 Get Count in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/modelbuilder-get-count/m-p/184447#M6202</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi Curtis, the model-only tools (such as Calculate Value) were not available in 9.3 or 9.3.1. &lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks Nobbir - it's possible this option isn't available to Jose.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://webhelp.esri.com/arcgisdesktop/9.3/index.cfm?id=1826&amp;amp;pid=1824&amp;amp;topicname=Calculate_Value_(Data_Management)"&gt;Calculate Value&lt;/A&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;is&lt;/SPAN&gt;&lt;SPAN&gt; available in 9.3,&amp;nbsp; but you do a) need to go get it from the Toolbox - no fancy right-click model-only tools function and b) you need an ArcInfo or Spatial Analyst or 3D Analyst license to use it.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 25 Jun 2012 13:39:41 GMT</pubDate>
    <dc:creator>curtvprice</dc:creator>
    <dc:date>2012-06-25T13:39:41Z</dc:date>
    <item>
      <title>ModelBuilder Get Count</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/modelbuilder-get-count/m-p/184443#M6198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi all&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using ArcGIS 9.3.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I need to add a condition after a ModelBuilder GetCount.&amp;nbsp;&amp;nbsp; When the number of records counted is bigger that 1000 the model stops running.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Questions:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; - how to retrieve Get Count in a model&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; - how to stop a model when the value read is bigger that 1000 for example&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jun 2012 17:19:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/modelbuilder-get-count/m-p/184443#M6198</guid>
      <dc:creator>JoseSanchez</dc:creator>
      <dc:date>2012-06-22T17:19:54Z</dc:date>
    </item>
    <item>
      <title>Re: ModelBuilder Get Count</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/modelbuilder-get-count/m-p/184444#M6199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You need to create a Python script tool and chain the tool with the GetCount's output. The script tool will intercept the output of GetCount return true or false based on your condition.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 24 Jun 2012 17:03:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/modelbuilder-get-count/m-p/184444#M6199</guid>
      <dc:creator>NobbirAhmed</dc:creator>
      <dc:date>2012-06-24T17:03:42Z</dc:date>
    </item>
    <item>
      <title>Re: ModelBuilder Get Count</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/modelbuilder-get-count/m-p/184445#M6200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;You need to create a Python script tool and chain the tool with the GetCount's output. The script tool will intercept the output of GetCount return true or false based on your condition.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think you could also do this using Calculate Value to convert the output of Get Count into True or False. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;* Use the Count Rows tool - name the output element from it "Row Count". &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;* Set that as a precondition to Calculate Value&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;* Calculate Value would look something like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Expression: check(%Row Count%)&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;def check(rowcount):
&amp;nbsp; return float(rowcount) &amp;lt; 1000&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Data Type: Boolean&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;* Rename the output of Calculate Value to "Rows greater than 1000"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;* Use this element as an iterator condition for your model.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 09:22:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/modelbuilder-get-count/m-p/184445#M6200</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2021-12-11T09:22:05Z</dc:date>
    </item>
    <item>
      <title>Re: ModelBuilder Get Count</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/modelbuilder-get-count/m-p/184446#M6201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Curtis, the model-only tools (such as Calculate Value) were not available in 9.3 or 9.3.1. The only option available was to use a script tool. Here is an example:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://webhelp.esri.com/arcgisdesktop/9.3/index.cfm?TopicName=Branching:_Implementing_if-then-else_logic"&gt;http://webhelp.esri.com/arcgisdesktop/9.3/index.cfm?TopicName=Branching:_Implementing_if-then-else_logic&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jun 2012 03:28:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/modelbuilder-get-count/m-p/184446#M6201</guid>
      <dc:creator>NobbirAhmed</dc:creator>
      <dc:date>2012-06-25T03:28:37Z</dc:date>
    </item>
    <item>
      <title>Re: ModelBuilder Get Count</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/modelbuilder-get-count/m-p/184447#M6202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi Curtis, the model-only tools (such as Calculate Value) were not available in 9.3 or 9.3.1. &lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks Nobbir - it's possible this option isn't available to Jose.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://webhelp.esri.com/arcgisdesktop/9.3/index.cfm?id=1826&amp;amp;pid=1824&amp;amp;topicname=Calculate_Value_(Data_Management)"&gt;Calculate Value&lt;/A&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;is&lt;/SPAN&gt;&lt;SPAN&gt; available in 9.3,&amp;nbsp; but you do a) need to go get it from the Toolbox - no fancy right-click model-only tools function and b) you need an ArcInfo or Spatial Analyst or 3D Analyst license to use it.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jun 2012 13:39:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/modelbuilder-get-count/m-p/184447#M6202</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2012-06-25T13:39:41Z</dc:date>
    </item>
    <item>
      <title>Re: ModelBuilder Get Count</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/modelbuilder-get-count/m-p/184448#M6203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Curtis, sorry for my mistake. You are right - calculate Value IS available in 9.3. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi Jose, the tool is under Data Management Tools &amp;gt; General toolset. Click on the link if the message of Curtis to get to tool help.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jun 2012 18:30:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/modelbuilder-get-count/m-p/184448#M6203</guid>
      <dc:creator>NobbirAhmed</dc:creator>
      <dc:date>2012-06-25T18:30:43Z</dc:date>
    </item>
  </channel>
</rss>

