<?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 Modelbuilder - Fill in list of values from excel in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/modelbuilder-fill-in-list-of-values-from-excel/m-p/1273958#M67431</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I'm trying to find a way that I can import a list of values that I have in an excel file into a "List of Values" string variable in my model? I'm trying to avoid having to type each one in manually.&lt;/P&gt;</description>
    <pubDate>Fri, 31 Mar 2023 04:29:53 GMT</pubDate>
    <dc:creator>slgissolutions</dc:creator>
    <dc:date>2023-03-31T04:29:53Z</dc:date>
    <item>
      <title>Modelbuilder - Fill in list of values from excel</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/modelbuilder-fill-in-list-of-values-from-excel/m-p/1273958#M67431</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I'm trying to find a way that I can import a list of values that I have in an excel file into a "List of Values" string variable in my model? I'm trying to avoid having to type each one in manually.&lt;/P&gt;</description>
      <pubDate>Fri, 31 Mar 2023 04:29:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/modelbuilder-fill-in-list-of-values-from-excel/m-p/1273958#M67431</guid>
      <dc:creator>slgissolutions</dc:creator>
      <dc:date>2023-03-31T04:29:53Z</dc:date>
    </item>
    <item>
      <title>Re: Modelbuilder - Fill in list of values from excel</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/modelbuilder-fill-in-list-of-values-from-excel/m-p/1274145#M67458</link>
      <description>&lt;P&gt;Use "Excel to Table" to load the data into a table, then "Calculate Value" with some Python cursors to join the column values into one big string. Something like this for the code block:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;def get_list(table):
    return ";".join(str(x[0]) for x in arcpy.da.SearchCursor(table, "My_Field_Name"))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and then you can call the function like &lt;EM&gt;get_list("%output_table%")&lt;/EM&gt;, replacing the variable with whatever the name of your output table is in modelbuilder.&lt;/P&gt;</description>
      <pubDate>Fri, 31 Mar 2023 15:59:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/modelbuilder-fill-in-list-of-values-from-excel/m-p/1274145#M67458</guid>
      <dc:creator>DavidSolari</dc:creator>
      <dc:date>2023-03-31T15:59:41Z</dc:date>
    </item>
  </channel>
</rss>

