<?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 Parameter ideas for user selecting optional pathways/outputs in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/model-parameter-ideas-for-user-selecting-optional/m-p/404298#M13719</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Curt, I just wanted to circle back to this and provide a thanks. I got really busy after I posted this and just didn't get a chance to reply. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I feel pretty dumb for not knowing exactly what the Boolean parameter does. My biggest challenge was incorporating this into my model I'm comfortable with the if/else within python, but building that into my model wasn't working for me, so I ended up attempting to convert the model all into python. the problem then is that the model essentially has linear pathways and the derived/intermediate data need to all be defined uniquely within python and that's where I ran into problems. I'm not exactly sure where this leaves me, but you did answer my question at least!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Apr 2013 14:10:55 GMT</pubDate>
    <dc:creator>ZacharyHart</dc:creator>
    <dc:date>2013-04-03T14:10:55Z</dc:date>
    <item>
      <title>Model Parameter ideas for user selecting optional pathways/outputs</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/model-parameter-ideas-for-user-selecting-optional/m-p/404293#M13714</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;My ideal would be a radio button that has a 'yes/no' option. But I know that's not going to happen.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't think the background of this particular model matters for the sake of this discussion, but if someone wants to see it i'll post a graphic. Basically the GP task extracts interactively selects the data and makes it available for download via the Extract Data to Zip file script. I'd like there to be an &lt;/SPAN&gt;&lt;SPAN style="text-decoration:underline;"&gt;option&lt;/SPAN&gt;&lt;SPAN&gt; of merging the data before the extraction. I know how to get the data to merge, but only as a separate model, so i'm looking to somehow expose a user input parameter/value which would then cause the model to merge the data as an alternative.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any suggestions within the model builder environment?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Mar 2013 19:03:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/model-parameter-ideas-for-user-selecting-optional/m-p/404293#M13714</guid>
      <dc:creator>ZacharyHart</dc:creator>
      <dc:date>2013-03-15T19:03:35Z</dc:date>
    </item>
    <item>
      <title>Re: Model Parameter ideas for user selecting optional pathways/outputs</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/model-parameter-ideas-for-user-selecting-optional/m-p/404294#M13715</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I believe you could use a "Calculate&amp;nbsp; Value" before the extraction, and write a if/elif in it. Then, you could use the expression as a parameter (or setting a string as a parameter, and inline variable it as the expression) and it will appear in the dialogue box when the model is run. From here, depending on how you write the function you could have the user type "Yes" or "No" and work from there, I think.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//0017000000v8000000"&gt;http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//0017000000v8000000&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Mar 2013 19:44:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/model-parameter-ideas-for-user-selecting-optional/m-p/404294#M13715</guid>
      <dc:creator>EricStipe</dc:creator>
      <dc:date>2013-03-15T19:44:33Z</dc:date>
    </item>
    <item>
      <title>Re: Model Parameter ideas for user selecting optional pathways/outputs</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/model-parameter-ideas-for-user-selecting-optional/m-p/404295#M13716</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;There's a great set of ArcGIS Blog posts on this topic that really opened my eyes to some of the more advanced capabilities of ModelBuilder. Parts 1 and 2 directly deal with your question on how to branch models.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ArcGIS Blog: If You Are Stuck At "If" (5 parts)&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://blogs.esri.com/Dev/blogs/geoprocessing/archive/2011/06/06/ModelBuilderIfThenElse1.aspx"&gt;Part 1&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://blogs.esri.com/Dev/blogs/geoprocessing/archive/2011/06%20/06/ModelBuilderIfThenElse2.aspx"&gt;Part 2&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://blogs.esri.com/Dev/blogs/geoprocessing/archive/2011/09/12/ModelBuilderIfThenElse3.aspx/"&gt;Part 3&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://blogs.esri.com/Dev/blogs/geoprocessing/archive/2011/09/20/ModelBuilderIfThenElse4.aspx"&gt;Part 4&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://blogs.esri.com/esri/arcgis/2011/09/29/modelbuilderifthenelsepart5/"&gt;Part 5&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Mar 2013 05:42:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/model-parameter-ideas-for-user-selecting-optional/m-p/404295#M13716</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2013-03-18T05:42:47Z</dc:date>
    </item>
    <item>
      <title>Re: Model Parameter ideas for user selecting optional pathways/outputs</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/model-parameter-ideas-for-user-selecting-optional/m-p/404296#M13717</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the responses. I'm kind of leaning towards the arcpy solution, but it seems every example uses an arcpy.function. Can anyone provide an example of just testing whether a parameter exists? I'm getting better with arcpy, but I'm still in need of examples to jump start the process.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Mar 2013 11:23:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/model-parameter-ideas-for-user-selecting-optional/m-p/404296#M13717</guid>
      <dc:creator>ZacharyHart</dc:creator>
      <dc:date>2013-03-18T11:23:20Z</dc:date>
    </item>
    <item>
      <title>Re: Model Parameter ideas for user selecting optional pathways/outputs</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/model-parameter-ideas-for-user-selecting-optional/m-p/404297#M13718</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Thanks for the responses.&amp;nbsp; Can anyone provide an example of just testing whether a parameter exists?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When you use GetParameterAsText, when no value was provided, it comes across as an empty string.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;# test if the third parameter was set if arcpy.GetParameterAsText(2) == "": &amp;nbsp; do this else: &amp;nbsp; do that&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you have a checkbox parameter (Boolean) you can do this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;# test if the third parameter was checked # Booleans come across as the string "true" or "false" if arcpy.GetParameterAsText(2) == "true": &amp;nbsp; do this else: &amp;nbsp; do that&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Mar 2013 15:37:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/model-parameter-ideas-for-user-selecting-optional/m-p/404297#M13718</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2013-03-18T15:37:24Z</dc:date>
    </item>
    <item>
      <title>Re: Model Parameter ideas for user selecting optional pathways/outputs</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/model-parameter-ideas-for-user-selecting-optional/m-p/404298#M13719</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Curt, I just wanted to circle back to this and provide a thanks. I got really busy after I posted this and just didn't get a chance to reply. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I feel pretty dumb for not knowing exactly what the Boolean parameter does. My biggest challenge was incorporating this into my model I'm comfortable with the if/else within python, but building that into my model wasn't working for me, so I ended up attempting to convert the model all into python. the problem then is that the model essentially has linear pathways and the derived/intermediate data need to all be defined uniquely within python and that's where I ran into problems. I'm not exactly sure where this leaves me, but you did answer my question at least!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Apr 2013 14:10:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/model-parameter-ideas-for-user-selecting-optional/m-p/404298#M13719</guid>
      <dc:creator>ZacharyHart</dc:creator>
      <dc:date>2013-04-03T14:10:55Z</dc:date>
    </item>
  </channel>
</rss>

