<?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 Which Parameter data types in a Python toolbox For Selecting A Path in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/which-parameter-data-types-in-a-python-toolbox-for/m-p/1300777#M70360</link>
    <description>&lt;P&gt;I need to select a SDE PATH based on user selection on Python toolbox at ArcGIS Pro 2.7.1 and use this path&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="fsnep" style="width: 531px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/73626i6D8FF2FC1655C839/image-size/large?v=v2&amp;amp;px=999" role="button" title="fsnep" alt="fsnep" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;at the code for setting like&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;fc = 'Zone'
SDEDir = inputPath
arcpy.management.CalculateField(r"F:\\Pro\\AreaProject\\SEV_SDE.sde\\" + fc, 
                                "PROJECTT", 
                                ....
                                "PYTHON")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;so the final code looks like&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;fc = 'Zone'
SDEDir = inputPath
arcpy.management.CalculateField(SDEDir  + fc, 
                                "PROJECTT", 
                                ....
                                "PYTHON")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Can you please let me know what data type I can use to grab the selected SDE Path? I already used&amp;nbsp;&lt;/SPAN&gt;File&lt;SPAN&gt;&amp;nbsp;and&amp;nbsp;&lt;/SPAN&gt;Database Connection&lt;SPAN&gt;&amp;nbsp;but they are not giving me the PATH&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 19 Jun 2023 16:38:38 GMT</pubDate>
    <dc:creator>BHK</dc:creator>
    <dc:date>2023-06-19T16:38:38Z</dc:date>
    <item>
      <title>Which Parameter data types in a Python toolbox For Selecting A Path</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/which-parameter-data-types-in-a-python-toolbox-for/m-p/1300777#M70360</link>
      <description>&lt;P&gt;I need to select a SDE PATH based on user selection on Python toolbox at ArcGIS Pro 2.7.1 and use this path&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="fsnep" style="width: 531px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/73626i6D8FF2FC1655C839/image-size/large?v=v2&amp;amp;px=999" role="button" title="fsnep" alt="fsnep" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;at the code for setting like&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;fc = 'Zone'
SDEDir = inputPath
arcpy.management.CalculateField(r"F:\\Pro\\AreaProject\\SEV_SDE.sde\\" + fc, 
                                "PROJECTT", 
                                ....
                                "PYTHON")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;so the final code looks like&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;fc = 'Zone'
SDEDir = inputPath
arcpy.management.CalculateField(SDEDir  + fc, 
                                "PROJECTT", 
                                ....
                                "PYTHON")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Can you please let me know what data type I can use to grab the selected SDE Path? I already used&amp;nbsp;&lt;/SPAN&gt;File&lt;SPAN&gt;&amp;nbsp;and&amp;nbsp;&lt;/SPAN&gt;Database Connection&lt;SPAN&gt;&amp;nbsp;but they are not giving me the PATH&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Jun 2023 16:38:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/which-parameter-data-types-in-a-python-toolbox-for/m-p/1300777#M70360</guid>
      <dc:creator>BHK</dc:creator>
      <dc:date>2023-06-19T16:38:38Z</dc:date>
    </item>
    <item>
      <title>Re: Which Parameter data types in a Python toolbox For Selecting A Path</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/which-parameter-data-types-in-a-python-toolbox-for/m-p/1300856#M70372</link>
      <description>&lt;P&gt;Use a workspace and specify a remote database filter.&amp;nbsp; For a python toolbox (.pyt) this is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import os
import arcpy

etc...

class Tool(object):

etc...

    def getParameterInfo(self):
        param0 = arcpy.Parameter(
            displayName="Input Workspace",
            name="in_workspace",
            datatype="DEWorkspace",
            parameterType="Required",
            direction="Input")
    
        # Set the filter to accept only remote/enterprise geodatabases
        param0.filter.list = ["Remote Database"]
    
        return [param0]
    
    def execute(self, parameters, messages):
        """The source code of the tool."""
        path = parameters[0].valueAsText
        fc = "Zone"
        fc_path = os.path.join(path, fc)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jun 2023 06:16:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/which-parameter-data-types-in-a-python-toolbox-for/m-p/1300856#M70372</guid>
      <dc:creator>Luke_Pinner</dc:creator>
      <dc:date>2023-06-20T06:16:03Z</dc:date>
    </item>
  </channel>
</rss>

