<?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 Tool that... in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/model-builder-tool-that/m-p/168508#M5662</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi, &lt;BR /&gt;Check the example 3 from this blog &lt;A href="http://blogs.esri.com/esri/arcgis/2011/06/06/modelbuilderifthenelse1/"&gt;"If you are stuck at if - Part 1"&lt;/A&gt; to get some idea.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Alright so I tried out the scrip but the output keeps returning false even when i know it's true. What I think is happening is that the script provided in the example above is for a FeatureClass whereas, I'm trying to check within a specific attribute field in the featureclass.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Do you know of any script that can help me specify which attribute field to check within the featureclass. Also, the Workspace in the example I'm assuming is the entire geodatabase folder, but my workspace would have to be just the one file/featureclass correct?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Maybe I have it all wrong but I'd appreciate any comments or suggestions.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 15 Jul 2013 19:34:29 GMT</pubDate>
    <dc:creator>ShikoNjuno</dc:creator>
    <dc:date>2013-07-15T19:34:29Z</dc:date>
    <item>
      <title>Model Builder Tool that...</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/model-builder-tool-that/m-p/168505#M5659</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello folks, I'm trying to find a tool on model builder that checks a list of user input values against an existing shapefile. Then, if it does exists, data from the corresponding raster files&amp;nbsp; will be extracted.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I realize this may require two or more different tools but if anyone can suggest at least one that checks existence of data, that'll be really helpful to get me started.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Shiko&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jul 2013 14:39:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/model-builder-tool-that/m-p/168505#M5659</guid>
      <dc:creator>ShikoNjuno</dc:creator>
      <dc:date>2013-07-15T14:39:48Z</dc:date>
    </item>
    <item>
      <title>Re: Model Builder Tool that...</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/model-builder-tool-that/m-p/168506#M5660</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Check the example 3 from this blog &lt;/SPAN&gt;&lt;A href="http://blogs.esri.com/esri/arcgis/2011/06/06/modelbuilderifthenelse1/"&gt;"If you are stuck at if - Part 1"&lt;/A&gt;&lt;SPAN&gt; to get some idea.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jul 2013 16:27:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/model-builder-tool-that/m-p/168506#M5660</guid>
      <dc:creator>ShitijMehta</dc:creator>
      <dc:date>2013-07-15T16:27:21Z</dc:date>
    </item>
    <item>
      <title>Re: Model Builder Tool that...</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/model-builder-tool-that/m-p/168507#M5661</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you Shitij....this is definitely helpful. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jul 2013 16:32:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/model-builder-tool-that/m-p/168507#M5661</guid>
      <dc:creator>ShikoNjuno</dc:creator>
      <dc:date>2013-07-15T16:32:39Z</dc:date>
    </item>
    <item>
      <title>Re: Model Builder Tool that...</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/model-builder-tool-that/m-p/168508#M5662</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi, &lt;BR /&gt;Check the example 3 from this blog &lt;A href="http://blogs.esri.com/esri/arcgis/2011/06/06/modelbuilderifthenelse1/"&gt;"If you are stuck at if - Part 1"&lt;/A&gt; to get some idea.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Alright so I tried out the scrip but the output keeps returning false even when i know it's true. What I think is happening is that the script provided in the example above is for a FeatureClass whereas, I'm trying to check within a specific attribute field in the featureclass.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Do you know of any script that can help me specify which attribute field to check within the featureclass. Also, the Workspace in the example I'm assuming is the entire geodatabase folder, but my workspace would have to be just the one file/featureclass correct?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Maybe I have it all wrong but I'd appreciate any comments or suggestions.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jul 2013 19:34:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/model-builder-tool-that/m-p/168508#M5662</guid>
      <dc:creator>ShikoNjuno</dc:creator>
      <dc:date>2013-07-15T19:34:29Z</dc:date>
    </item>
    <item>
      <title>Re: Model Builder Tool that...</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/model-builder-tool-that/m-p/168509#M5663</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You want to check if a particular field exists in a feature class or not: if this is correct: check the attached example of how to use the Calculate Value tool and the python code. Hope this helps. Let me know.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jul 2013 16:08:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/model-builder-tool-that/m-p/168509#M5663</guid>
      <dc:creator>ShitijMehta</dc:creator>
      <dc:date>2013-07-16T16:08:15Z</dc:date>
    </item>
    <item>
      <title>Re: Model Builder Tool that...</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/model-builder-tool-that/m-p/168510#M5664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Not exactly.....&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;What I want is to check if a list of user-input string values exists in one of the attribute fields within the shapefile.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Below is sample code that someone gave me to achieve this but it's still not quite what I need.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;See the thread: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;A href="http://forums.arcgis.com/threads/88566-Python-Code-Assist"&gt;http://forums.arcgis.com/threads/88566-Python-Code-Assist&lt;/A&gt;&lt;SPAN&gt;!!! &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I really appreciate your assistance.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jul 2013 16:25:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/model-builder-tool-that/m-p/168510#M5664</guid>
      <dc:creator>ShikoNjuno</dc:creator>
      <dc:date>2013-07-16T16:25:08Z</dc:date>
    </item>
    <item>
      <title>Re: Model Builder Tool that...</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/model-builder-tool-that/m-p/168511#M5665</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;ok. Lets try again. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So you have some string values provided by the user say : Babbler, Sparrow and Crow. You want to check if &lt;/SPAN&gt;&lt;STRONG style="text-decoration: underline;"&gt;any or all?&lt;/STRONG&gt;&lt;SPAN&gt; Babbler, Sparrow and Crow values exists in a field called birds in your input feature class. Is this correct?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How do users provide these values. A separate variable for each user input, meaning a variable for Babbler, another separate variable for Sparrow and so on? or the user provides these values in a single multivalue variable?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You want to check if a particular value exists in a field????&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jul 2013 16:33:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/model-builder-tool-that/m-p/168511#M5665</guid>
      <dc:creator>ShitijMehta</dc:creator>
      <dc:date>2013-07-16T16:33:16Z</dc:date>
    </item>
    <item>
      <title>Re: Model Builder Tool that...</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/model-builder-tool-that/m-p/168512#M5666</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Exactly :)....the user will input tax lot numbers into a list which is defined as a &lt;/SPAN&gt;&lt;STRONG&gt;list&lt;/STRONG&gt;&lt;SPAN&gt; of type &lt;/SPAN&gt;&lt;STRONG&gt;String&lt;/STRONG&gt;&lt;SPAN&gt;, which may or may not be the right setting to have?!!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But yes....that is exactly what I'm trying to do....at least to begin with.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jul 2013 16:38:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/model-builder-tool-that/m-p/168512#M5666</guid>
      <dc:creator>ShikoNjuno</dc:creator>
      <dc:date>2013-07-16T16:38:18Z</dc:date>
    </item>
    <item>
      <title>Re: Model Builder Tool that...</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/model-builder-tool-that/m-p/168513#M5667</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ok.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Try this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Read this blog &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://blogs.esri.com/esri/arcgis/2011/09/20/modelbuilderifthenelse4/" rel="nofollow" target="_blank"&gt;If you are stuck at if Part 4&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;Download the script tool from the link in the blog.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Then try to create a model as shown in the attachment.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jul 2013 17:36:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/model-builder-tool-that/m-p/168513#M5667</guid>
      <dc:creator>ShitijMehta</dc:creator>
      <dc:date>2013-07-16T17:36:01Z</dc:date>
    </item>
    <item>
      <title>Re: Model Builder Tool that...</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/model-builder-tool-that/m-p/168514#M5668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Excellent!!!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I know what I'll be working on this afternoon &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Great help.Thanks for your time.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jul 2013 17:47:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/model-builder-tool-that/m-p/168514#M5668</guid>
      <dc:creator>ShikoNjuno</dc:creator>
      <dc:date>2013-07-16T17:47:18Z</dc:date>
    </item>
    <item>
      <title>Re: Model Builder Tool that...</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/model-builder-tool-that/m-p/168515#M5669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;So I'm up to the Script Tool point with the model.....I switched it up a little but I don't think that should cause the error message below:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Expression&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;x(%Selection%, %Workspace%)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Code&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;def x(Selection,Workspace):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; arcpy.env.workspace = Workspace&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; if all in [arcpy.Exists(s) for s in Selection]:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return True&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; else:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return False&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Data Type&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Boolean&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;After running:&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;ERROR 000539: SyntaxError: unexpected character after line continuation character (&amp;lt;expression&amp;gt;, line 1)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Failed to execute (Selection_Exist_Check).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Failed at Tue Jul 16 13:51:52 &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Note: This was happening even prior to your model suggestion, which works well up until this point. Also, Workspace is the shapefile of interest.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jul 2013 19:54:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/model-builder-tool-that/m-p/168515#M5669</guid>
      <dc:creator>ShikoNjuno</dc:creator>
      <dc:date>2013-07-16T19:54:07Z</dc:date>
    </item>
    <item>
      <title>Re: Model Builder Tool that...</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/model-builder-tool-that/m-p/168516#M5670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;arcpy.env.worspace should be a workspace like a folder or a geodatabase and not a path to a specific shapefile. May be this is the issue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;or &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;when you pass a path in the expression you should do it like this: &lt;/SPAN&gt;&lt;STRONG&gt;r"&lt;/STRONG&gt;&lt;SPAN&gt;%Workspace&lt;/SPAN&gt;&lt;STRONG&gt;%"&lt;/STRONG&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;or&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This error code covers a number of Python errors:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Example error 1: exceptions.TypeError: cannot concatenate 'str' and 'int' objects. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The above is a Python-specific error. The calculation is attempting to add or concatenate a string and a number. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Example error 2: Invalid field shape@distance &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The above is an error using the geometry object. The distance method is not a valid method of the geometry object.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jul 2013 21:01:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/model-builder-tool-that/m-p/168516#M5670</guid>
      <dc:creator>ShitijMehta</dc:creator>
      <dc:date>2013-07-16T21:01:29Z</dc:date>
    </item>
  </channel>
</rss>

