<?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: Python Toolbox - populate drop down from layers loaded in the contents for each parameter in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/python-toolbox-populate-drop-down-from-layers/m-p/1567412#M73317</link>
    <description>&lt;P&gt;Try &lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/geoprocessing_and_python/defining-parameter-data-types-in-a-python-toolbox.htm#:~:text=or%20more%20rasters.-,Raster%20Layer,-GPRasterLayer" target="_blank" rel="noopener"&gt;Raster Layer&amp;nbsp;&lt;/A&gt;&amp;nbsp;and Table View data types.&lt;/P&gt;</description>
    <pubDate>Wed, 11 Dec 2024 18:11:45 GMT</pubDate>
    <dc:creator>AlfredBaldenweck</dc:creator>
    <dc:date>2024-12-11T18:11:45Z</dc:date>
    <item>
      <title>Python Toolbox - populate drop down from layers loaded in the contents for each parameter</title>
      <link>https://community.esri.com/t5/python-questions/python-toolbox-populate-drop-down-from-layers/m-p/1567393#M73316</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I can't seem to find any information on populating a drop down for each parameter that is already in my contents in ArcPro. Any idea on how to do so? For whatever reason it does it for my Study Area parameter but not the others. See the Study Area Parameter for what I am looking for in the image attached.&lt;/P&gt;&lt;P&gt;Anyone have any suggestions?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks, Heather&lt;/P&gt;&lt;P&gt;Here is my code for the parameters (if this helps):&amp;nbsp;&lt;/P&gt;&lt;P&gt;def getParameterInfo(self):&lt;/P&gt;&lt;P&gt;#Define the parameters&lt;BR /&gt;Extent = arcpy.Parameter(&lt;BR /&gt;displayName = "Define Extent",&lt;BR /&gt;name = "Extent",&lt;BR /&gt;datatype = "GPExtent",&lt;BR /&gt;parameterType = "Required",&lt;BR /&gt;direction = "Input")&lt;BR /&gt;&lt;BR /&gt;Identify_Workspace = arcpy.Parameter(&lt;BR /&gt;displayName = "Identify Workspace",&lt;BR /&gt;name = "Identify_Workspace",&lt;BR /&gt;datatype = "DEWorkspace",&lt;BR /&gt;parameterType = "Required",&lt;BR /&gt;direction = "Input")&lt;/P&gt;&lt;P&gt;Study_Area = arcpy.Parameter(&lt;BR /&gt;displayName="Study Area",&lt;BR /&gt;name="Study_Area",&lt;BR /&gt;datatype="GPFeatureLayer",&lt;BR /&gt;parameterType="Required",&lt;BR /&gt;direction="Input")&lt;BR /&gt;Study_Area.controlCLSID = "{60061247-BCA8-473E-A7AF-A2026DDE1C2D}"&lt;/P&gt;&lt;P&gt;Base_Raster = arcpy.Parameter(&lt;BR /&gt;displayName="Base Tree Raster (such as tree height, canopy cover percentage, etc.)",&lt;BR /&gt;name="Base_Raster",&lt;BR /&gt;datatype="DERasterDataset",&lt;BR /&gt;parameterType="Required",&lt;BR /&gt;direction="Input")&lt;BR /&gt;&lt;BR /&gt;#Base_Raster.filter.type = "ValueList"&lt;/P&gt;&lt;P&gt;dBASE_file = arcpy.Parameter(&lt;BR /&gt;displayName = "Class Ranges (dBASE file)",&lt;BR /&gt;name = "dBASE_file",&lt;BR /&gt;datatype = "DEDbaseTable",&lt;BR /&gt;parameterType = "Required",&lt;BR /&gt;direction = "Input")&lt;BR /&gt;&lt;BR /&gt;parameters = [Extent, Identify_Workspace, Study_Area, Base_Raster, dBASE_file]&lt;BR /&gt;return parameters&lt;/P&gt;</description>
      <pubDate>Wed, 11 Dec 2024 17:49:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-toolbox-populate-drop-down-from-layers/m-p/1567393#M73316</guid>
      <dc:creator>HeatherDulaney1</dc:creator>
      <dc:date>2024-12-11T17:49:44Z</dc:date>
    </item>
    <item>
      <title>Re: Python Toolbox - populate drop down from layers loaded in the contents for each parameter</title>
      <link>https://community.esri.com/t5/python-questions/python-toolbox-populate-drop-down-from-layers/m-p/1567412#M73317</link>
      <description>&lt;P&gt;Try &lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/geoprocessing_and_python/defining-parameter-data-types-in-a-python-toolbox.htm#:~:text=or%20more%20rasters.-,Raster%20Layer,-GPRasterLayer" target="_blank" rel="noopener"&gt;Raster Layer&amp;nbsp;&lt;/A&gt;&amp;nbsp;and Table View data types.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Dec 2024 18:11:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-toolbox-populate-drop-down-from-layers/m-p/1567412#M73317</guid>
      <dc:creator>AlfredBaldenweck</dc:creator>
      <dc:date>2024-12-11T18:11:45Z</dc:date>
    </item>
  </channel>
</rss>

