<?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 How do I add multiple values with multiple filters to a python toolbox input? in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/how-do-i-add-multiple-values-with-multiple-filters/m-p/283866#M21909</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to create a python toolbox that allows the user to enter LiDAR surface constraints. The surface constraints input can consist of many feature classes with each feature class having a drop down list that lets the user select a field (z index/elevation) that is associated with the feature class and a second drop down that lets the user select the surface constraint type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The getParameterInfo() code looks like this:&lt;/P&gt;&lt;P&gt;#Parameter to hold one or many surface constraints&lt;BR /&gt; param1 = arcpy.Parameter(&lt;BR /&gt;&amp;nbsp; displayName="LiDAR Surface Constraints",&lt;BR /&gt;&amp;nbsp; name="in_surfaceConstraints",&lt;BR /&gt;&amp;nbsp; datatype="GPValueTable",&lt;BR /&gt;&amp;nbsp; parameterType="Optional",&lt;BR /&gt;&amp;nbsp; direction="Input",&lt;BR /&gt;&amp;nbsp; multiValue=True&lt;BR /&gt; )&lt;/P&gt;&lt;P&gt;param1.columns = [['DEFeatureClass','Constraint Feature'],['GPString','Height Field'],['GPString','Constraint Type']]&lt;BR /&gt; param1.filters[1].list = ['&amp;lt;none&amp;gt;']&lt;BR /&gt; param1.filters[2].type = 'ValueList'&lt;BR /&gt;param1.filters[2].list = ['Anchor_Points', 'Hard_Line', 'Soft_Line', 'Hard_Erase', 'Soft_Erase', 'Hard_Replace', 'Soft_Replace', 'Hard_Clip', 'Soft_Clip']&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" style="color: #4c4c4c; background-color: #ffffff; font-weight: bold;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;In the updateParameters() class I think I need to update the&amp;nbsp;&lt;SPAN&gt;param1.filters[1].list or add append a filter to each individual surface constraint feature class. The closest I have come so far is to append all the&amp;nbsp;fields to one filter.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have attached a screenshot of the toolbox input that is from the Create LAS Dataset that is native to ArcGIS for Desktop. I am trying to recreate a portion of that that will link up with the rest of my python script.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;IMG alt="Example Toolbox Input" class="image-1 jive-image j-img-original" src="/legacyfs/online/406757_Surface Constraints.JPG" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Hopefully that explains my predicament.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Zack&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 May 2018 18:20:58 GMT</pubDate>
    <dc:creator>ZackaryKing</dc:creator>
    <dc:date>2018-05-16T18:20:58Z</dc:date>
    <item>
      <title>How do I add multiple values with multiple filters to a python toolbox input?</title>
      <link>https://community.esri.com/t5/python-questions/how-do-i-add-multiple-values-with-multiple-filters/m-p/283866#M21909</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to create a python toolbox that allows the user to enter LiDAR surface constraints. The surface constraints input can consist of many feature classes with each feature class having a drop down list that lets the user select a field (z index/elevation) that is associated with the feature class and a second drop down that lets the user select the surface constraint type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The getParameterInfo() code looks like this:&lt;/P&gt;&lt;P&gt;#Parameter to hold one or many surface constraints&lt;BR /&gt; param1 = arcpy.Parameter(&lt;BR /&gt;&amp;nbsp; displayName="LiDAR Surface Constraints",&lt;BR /&gt;&amp;nbsp; name="in_surfaceConstraints",&lt;BR /&gt;&amp;nbsp; datatype="GPValueTable",&lt;BR /&gt;&amp;nbsp; parameterType="Optional",&lt;BR /&gt;&amp;nbsp; direction="Input",&lt;BR /&gt;&amp;nbsp; multiValue=True&lt;BR /&gt; )&lt;/P&gt;&lt;P&gt;param1.columns = [['DEFeatureClass','Constraint Feature'],['GPString','Height Field'],['GPString','Constraint Type']]&lt;BR /&gt; param1.filters[1].list = ['&amp;lt;none&amp;gt;']&lt;BR /&gt; param1.filters[2].type = 'ValueList'&lt;BR /&gt;param1.filters[2].list = ['Anchor_Points', 'Hard_Line', 'Soft_Line', 'Hard_Erase', 'Soft_Erase', 'Hard_Replace', 'Soft_Replace', 'Hard_Clip', 'Soft_Clip']&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" style="color: #4c4c4c; background-color: #ffffff; font-weight: bold;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;In the updateParameters() class I think I need to update the&amp;nbsp;&lt;SPAN&gt;param1.filters[1].list or add append a filter to each individual surface constraint feature class. The closest I have come so far is to append all the&amp;nbsp;fields to one filter.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have attached a screenshot of the toolbox input that is from the Create LAS Dataset that is native to ArcGIS for Desktop. I am trying to recreate a portion of that that will link up with the rest of my python script.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;IMG alt="Example Toolbox Input" class="image-1 jive-image j-img-original" src="/legacyfs/online/406757_Surface Constraints.JPG" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Hopefully that explains my predicament.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Zack&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 May 2018 18:20:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-do-i-add-multiple-values-with-multiple-filters/m-p/283866#M21909</guid>
      <dc:creator>ZackaryKing</dc:creator>
      <dc:date>2018-05-16T18:20:58Z</dc:date>
    </item>
  </channel>
</rss>

