<?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: Setting Parameter in my Script Tool in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/setting-parameter-in-my-script-tool/m-p/1150907#M63958</link>
    <description>&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/geoprocessing_and_python/defining-parameters-in-a-python-toolbox.htm" target="_blank"&gt;Defining parameters in a Python toolbox—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;way down towards the bottom&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Workspace&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;The workspace filter specifies the types of input workspaces that are permissible. There are three values:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;If you want to work with the custom toolboxes, they allow you to just pick the workspace parameter from a list&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/geoprocessing_and_python/setting-script-tool-parameters.htm" target="_blank"&gt;Setting script tool parameters—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;same workspace parameter is also towards the bottom&lt;/P&gt;</description>
    <pubDate>Fri, 04 Mar 2022 21:52:05 GMT</pubDate>
    <dc:creator>DanPatterson</dc:creator>
    <dc:date>2022-03-04T21:52:05Z</dc:date>
    <item>
      <title>Setting Parameter in my Script Tool</title>
      <link>https://community.esri.com/t5/python-questions/setting-parameter-in-my-script-tool/m-p/1150891#M63957</link>
      <description>&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;I've made a script to add fields to all my feature classes inside a gdb. My issue is that I'm trying set my Parameters in my Script Tool so that a user can run the script on any gdb they input by setting the workspace with arcpy.GetParameterAsText(0)&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import arcpy

arcpy.env.workspace = arcpy.GetParameterAsText(0)

fcList = arcpy.ListFeatureClasses()
for fc in fcList:
        arcpy.management.AddField(....) 
        arcpy.management.AddField(....)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Am I missing a step?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Mar 2022 21:19:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/setting-parameter-in-my-script-tool/m-p/1150891#M63957</guid>
      <dc:creator>SteveKim1</dc:creator>
      <dc:date>2022-03-04T21:19:57Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Parameter in my Script Tool</title>
      <link>https://community.esri.com/t5/python-questions/setting-parameter-in-my-script-tool/m-p/1150907#M63958</link>
      <description>&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/geoprocessing_and_python/defining-parameters-in-a-python-toolbox.htm" target="_blank"&gt;Defining parameters in a Python toolbox—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;way down towards the bottom&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Workspace&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;The workspace filter specifies the types of input workspaces that are permissible. There are three values:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;If you want to work with the custom toolboxes, they allow you to just pick the workspace parameter from a list&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/geoprocessing_and_python/setting-script-tool-parameters.htm" target="_blank"&gt;Setting script tool parameters—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;same workspace parameter is also towards the bottom&lt;/P&gt;</description>
      <pubDate>Fri, 04 Mar 2022 21:52:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/setting-parameter-in-my-script-tool/m-p/1150907#M63958</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2022-03-04T21:52:05Z</dc:date>
    </item>
  </channel>
</rss>

