<?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: ArcPy script tool parameter for nested arrays? in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/arcpy-script-tool-parameter-for-nested-arrays/m-p/1370488#M69662</link>
    <description>&lt;P&gt;I can't think of how this (with variable lengths) would fit into any parameter data type besides&amp;nbsp;&lt;FONT face="courier new,courier"&gt;GPString&lt;/FONT&gt;. Does that work?&lt;/P&gt;</description>
    <pubDate>Tue, 16 Jan 2024 15:15:38 GMT</pubDate>
    <dc:creator>BlakeTerhune</dc:creator>
    <dc:date>2024-01-16T15:15:38Z</dc:date>
    <item>
      <title>ArcPy script tool parameter for nested arrays?</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-script-tool-parameter-for-nested-arrays/m-p/1369895#M69644</link>
      <description>&lt;P&gt;I have an arcpy script I'd like to turn into a script tool, but I am not sure if what I need for one of my parameters is feasible with the existing data type options.&lt;/P&gt;&lt;P&gt;The parameter is a two-dimensional array with both levels having variable lengths. Here is an example just to demonstrate the structure:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;[[A, 1, 2, 3], [B, 4, 5], [C, 1, 5], [D, 2], ...]&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;I think what I would ideally want is a value table parameter that can take a multivalue parameter for one of its columns&lt;SPAN&gt;.&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;This script automates frequently repeated manual tasks for my team, so there is no spatial data computation/analysis happening. So while this may not be the best object structure, it works well for our purpose. I want an option to construct this parameter using the Pro's tool interface since the numeric variables in the above example are feature layers from the map. While it's doable, writing out their paths manually sometimes is time-consuming and prone to error.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestions you can offer to achieve this?&amp;nbsp;Thanks in advance for your help.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 13 Jan 2024 04:17:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-script-tool-parameter-for-nested-arrays/m-p/1369895#M69644</guid>
      <dc:creator>aakims</dc:creator>
      <dc:date>2024-01-13T04:17:57Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPy script tool parameter for nested arrays?</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-script-tool-parameter-for-nested-arrays/m-p/1370488#M69662</link>
      <description>&lt;P&gt;I can't think of how this (with variable lengths) would fit into any parameter data type besides&amp;nbsp;&lt;FONT face="courier new,courier"&gt;GPString&lt;/FONT&gt;. Does that work?&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jan 2024 15:15:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-script-tool-parameter-for-nested-arrays/m-p/1370488#M69662</guid>
      <dc:creator>BlakeTerhune</dc:creator>
      <dc:date>2024-01-16T15:15:38Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPy script tool parameter for nested arrays?</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-script-tool-parameter-for-nested-arrays/m-p/1374574#M69725</link>
      <description>&lt;P&gt;You could&amp;nbsp;&lt;EM&gt;maybe&lt;/EM&gt; get jagged arrays working with a ValueTable but you might run into ergonomics issues. My preferred solution is a multivalue string parameter where each value is delimited with a known character. As long as you validate each value in the updateParameters validation step you should be good to go.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jan 2024 18:48:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-script-tool-parameter-for-nested-arrays/m-p/1374574#M69725</guid>
      <dc:creator>DavidSolari</dc:creator>
      <dc:date>2024-01-25T18:48:24Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPy script tool parameter for nested arrays?</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-script-tool-parameter-for-nested-arrays/m-p/1383855#M69908</link>
      <description>&lt;P&gt;Have a look at the validation tools in the forms. You can program up a really complex interface with a bit of python programming, have error messages and check it is valid before starting the run. You can even program the whole form up in python so you don't use the wizard at all, I haven't gone to that step myself.&lt;/P&gt;&lt;P&gt;Here is an example that analyses our census data.&lt;A href="http://%20http://www.ollivier.co.nz/support/census2018/index.htm" target="_self"&gt; http://www.ollivier.co.nz/support/census2018/index.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Feb 2024 10:09:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-script-tool-parameter-for-nested-arrays/m-p/1383855#M69908</guid>
      <dc:creator>KimOllivier</dc:creator>
      <dc:date>2024-02-18T10:09:59Z</dc:date>
    </item>
  </channel>
</rss>

