<?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: How to generate multivalue choice list (toolbox script) to clip only selected features? in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/how-to-generate-multivalue-choice-list-toolbox/m-p/73309#M6006</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks James, you're a peach. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 01 Oct 2014 00:35:28 GMT</pubDate>
    <dc:creator>curtvprice</dc:creator>
    <dc:date>2014-10-01T00:35:28Z</dc:date>
    <item>
      <title>How to generate multivalue choice list (toolbox script) to clip only selected features?</title>
      <link>https://community.esri.com/t5/python-questions/how-to-generate-multivalue-choice-list-toolbox/m-p/73301#M5998</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any ideas, python scripts?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Sep 2014 07:11:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-generate-multivalue-choice-list-toolbox/m-p/73301#M5998</guid>
      <dc:creator>JohannesBierer</dc:creator>
      <dc:date>2014-09-26T07:11:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to generate multivalue choice list (toolbox script) to clip only selected features?</title>
      <link>https://community.esri.com/t5/python-questions/how-to-generate-multivalue-choice-list-toolbox/m-p/73302#M5999</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you provide a little more detail? I'm guessing you want to present a dynamically generated list of checkboxes to the user. This would probably be a job for a Value Table parameter set up using a Python toolbox (pyt). Script tools in a tbx don't support value tables like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could probably populate a filter values to select in validation code for a multi value of strings, but I don't know if that's really what you want and would be also kind of complicated to the tool user.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sure you don't want to just present a SQL expression as a parameter and provide dialog documentation to guide the user to operate the select dialog that they already know how to use? (Sometimes less is more.)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 27 Sep 2014 04:25:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-generate-multivalue-choice-list-toolbox/m-p/73302#M5999</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2014-09-27T04:25:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to generate multivalue choice list (toolbox script) to clip only selected features?</title>
      <link>https://community.esri.com/t5/python-questions/how-to-generate-multivalue-choice-list-toolbox/m-p/73303#M6000</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The idea is to clip about 50 Layer with a given polygon. Because not always these 50 are needed, the user should be able to check or uncheck certain layer?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Sep 2014 07:42:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-generate-multivalue-choice-list-toolbox/m-p/73303#M6000</guid>
      <dc:creator>JohannesBierer</dc:creator>
      <dc:date>2014-09-29T07:42:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to generate multivalue choice list (toolbox script) to clip only selected features?</title>
      <link>https://community.esri.com/t5/python-questions/how-to-generate-multivalue-choice-list-toolbox/m-p/73304#M6001</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is this a ESRI Add-in tool?&amp;nbsp; If so, ESRI has a sample of populating the ComboBox and then running the desired process on the selected item:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#//014p00000028000000" title="http://resources.arcgis.com/en/help/main/10.1/index.html#//014p00000028000000"&gt;ArcGIS Help 10.1&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Sep 2014 13:23:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-generate-multivalue-choice-list-toolbox/m-p/73304#M6001</guid>
      <dc:creator>JamesCrandall</dc:creator>
      <dc:date>2014-09-29T13:23:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to generate multivalue choice list (toolbox script) to clip only selected features?</title>
      <link>https://community.esri.com/t5/python-questions/how-to-generate-multivalue-choice-list-toolbox/m-p/73305#M6002</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Seems to me a generic multivalue list of layers would work for this, the user can delete inputs they don't want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this is a list of datasets in a folder, you could use tool validation to read the data in and populate as multi-value list of strings. Checkboxes are supported for them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From a usability perspective, for a tool I would lean toward doing it as a regular multi value (a list of layers, not with checkboxes) because that is more consistent with tools the user is used to (i.e. Intersect, Union, Append, etc). Add ins are a kind of different paradigm so the checkboxes may make more sense if you do it that way.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Sep 2014 22:19:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-generate-multivalue-choice-list-toolbox/m-p/73305#M6002</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2014-09-29T22:19:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to generate multivalue choice list (toolbox script) to clip only selected features?</title>
      <link>https://community.esri.com/t5/python-questions/how-to-generate-multivalue-choice-list-toolbox/m-p/73306#M6003</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your help. Unfortunately I can't generate Add-ins, because installations are forbidden &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;So I tried this simple solution:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;import arcpy&lt;/P&gt;&lt;P&gt;import os&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;input = arcpy.GetParameterAsText(0)&lt;/P&gt;&lt;P&gt;clipfeature = arcpy.GetParameterAsText(1)&lt;/P&gt;&lt;P&gt;output = arcpy.GetParameterAsText(2)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;arcpy.env.workspace = output&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;inputSp = input.split(";")&lt;/P&gt;&lt;P&gt;for i in inputSp:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.AddMessage(i)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.Clip_analysis(i, clipfeature, i)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Sep 2014 09:46:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-generate-multivalue-choice-list-toolbox/m-p/73306#M6003</guid>
      <dc:creator>JohannesBierer</dc:creator>
      <dc:date>2014-09-30T09:46:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to generate multivalue choice list (toolbox script) to clip only selected features?</title>
      <link>https://community.esri.com/t5/python-questions/how-to-generate-multivalue-choice-list-toolbox/m-p/73307#M6004</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then you should mark Curtis' answer as the correct one because it better describes your situation and requirements to arrive at a solution.&amp;nbsp; Also, it's best if you post the current code version you are stuck at in your original post so the forum members can arrive at a solution much quicker rather than having to dig out what it is you are attempting -- I couldn't quite tell what you needed to accomplish and was the reason for my questions rather than posting an actual solution or sample.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Glad you figured it out.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Sep 2014 12:28:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-generate-multivalue-choice-list-toolbox/m-p/73307#M6004</guid>
      <dc:creator>JamesCrandall</dc:creator>
      <dc:date>2014-09-30T12:28:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to generate multivalue choice list (toolbox script) to clip only selected features?</title>
      <link>https://community.esri.com/t5/python-questions/how-to-generate-multivalue-choice-list-toolbox/m-p/73308#M6005</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;James, there was no code I stucked with. The code was written after your suggestions &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Sep 2014 12:40:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-generate-multivalue-choice-list-toolbox/m-p/73308#M6005</guid>
      <dc:creator>JohannesBierer</dc:creator>
      <dc:date>2014-09-30T12:40:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to generate multivalue choice list (toolbox script) to clip only selected features?</title>
      <link>https://community.esri.com/t5/python-questions/how-to-generate-multivalue-choice-list-toolbox/m-p/73309#M6006</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks James, you're a peach. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Oct 2014 00:35:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-generate-multivalue-choice-list-toolbox/m-p/73309#M6006</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2014-10-01T00:35:28Z</dc:date>
    </item>
  </channel>
</rss>

