<?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: How to import a .txt into a custom python tool as a variable and use the variable as vertical factor of path distance tool in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/how-to-import-a-txt-into-a-custom-python-tool-as-a/m-p/38588#M3024</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So I understand that part. The only thing left to bring it all together is instead of using "c:/path/vffile.txt". - use a variable that is assigned for the file. So if we use your example, this is what I want it to look like(this doesn't work): &lt;/P&gt;&lt;OL class="dp-py" start="1" style="font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; color: #5c5c5c; margin-bottom: 1px !important; margin-left: 45px !important;"&gt;&lt;LI&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; font-size: 9pt !important; background-color: inherit;"&gt;&lt;SPAN class="keyword" style="font-weight: inherit; font-style: inherit; color: #006699; font-size: 9pt !important; background-color: inherit;"&gt;import&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt !important; background-color: inherit;"&gt; arcpy&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; font-size: 9pt !important; background-color: inherit;"&gt;Toblers_table = arcpy.getParamter(0)&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; font-size: 9pt !important; background-color: inherit;"&gt;vertical_factor = arcpy.sa.VfTable(&lt;SPAN class="string" style="font-weight: inherit; font-style: inherit; color: blue; font-size: 9pt !important; background-color: inherit;"&gt;Toblers_table&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt !important; background-color: inherit;"&gt;)&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; font-size: 9pt !important; background-color: inherit;"&gt;out_path_dist = arcpy.sa.PathDistance(&lt;SPAN class="string" style="font-weight: inherit; font-style: inherit; color: blue; font-size: 9pt !important; background-color: inherit;"&gt;"source.shp"&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt !important; background-color: inherit;"&gt;, &lt;/SPAN&gt;&lt;SPAN class="string" style="font-weight: inherit; font-style: inherit; color: blue; font-size: 9pt !important; background-color: inherit;"&gt;"costraster"&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt !important; background-color: inherit;"&gt;, "&lt;/SPAN&gt;&lt;SPAN class="string" style="font-weight: inherit; font-style: inherit; color: blue; font-size: 9pt !important; background-color: inherit;"&gt;", "&lt;/SPAN&gt;&lt;SPAN class="string" style="font-weight: inherit; font-style: inherit; color: blue; font-size: 9pt !important; background-color: inherit;"&gt;", "&lt;/SPAN&gt;&lt;SPAN class="string" style="font-weight: inherit; font-style: inherit; color: blue; font-size: 9pt !important; background-color: inherit;"&gt;", "&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt !important; background-color: inherit;"&gt;",v&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; font-size: 9pt !important;"&gt;ertical_factor)&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; font-size: 9pt !important; background-color: inherit;"&gt;out_path_dist.save(&lt;SPAN class="string" style="font-weight: inherit; font-style: inherit; color: blue; font-size: 9pt !important; background-color: inherit;"&gt;"C:/workspace/path_dist_by_vf.tif"&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt !important; background-color: inherit;"&gt;) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;I am not sure what function to use for the 2nd line of code. I have tried that^ and&lt;/P&gt;&lt;P&gt;Toblers_table = arcpy.getParameterAsText(0)&lt;/P&gt;&lt;P&gt;Toblers_table = UTILS.getTextParameter(0). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was also thinking if there was a function to get the path name of the file so I could just put that in the vertical factor section of the path distance tool. I am just trying to avoid having to code in the "c/apth/vfile.txt". &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Apr 2015 22:40:34 GMT</pubDate>
    <dc:creator>AaronSchroeder2</dc:creator>
    <dc:date>2015-04-21T22:40:34Z</dc:date>
    <item>
      <title>How to import a .txt into a custom python tool as a variable and use the variable as vertical factor of path distance tool</title>
      <link>https://community.esri.com/t5/python-questions/how-to-import-a-txt-into-a-custom-python-tool-as-a/m-p/38582#M3018</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am building a custom python tool in ArcMap 10.2.2 and one of the Input Variables needs to be Tobler's Hiking Function as a .txt which will be used as the Vertical Factor in the Path Distance tool. So the input Parameter(right-click the tool &amp;gt; properties &amp;gt; parameter tab) is Table and the interface allows me to select the .txt file just fine. I then have been trying to get the .txt into a variable using&lt;/P&gt;&lt;P&gt;Tobler_input = UTILS.getTextParamer(0) and then insert the variable into the path distance tool as a Table vertical factorbut it says "Unable to open file" and then gives the path location up to where the .txt file is located.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is basically what the code for that part is.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;import arcpy&lt;/P&gt;&lt;P&gt;import SSUtilities as UTILS&lt;/P&gt;&lt;P&gt;from arcpy.sa import *&lt;/P&gt;&lt;P&gt;arcpy.CheckOutExtension("spatial")&lt;/P&gt;&lt;P&gt;#------------------------------------------------&lt;/P&gt;&lt;P&gt;Tobler_input = UTILS.getTextParamer(0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;arcpy.gp.PathDistance_sa(LKL_input, PathDist_output, LCover_aoi_reclass, DEM_aoi_1, "", "BINARY 1 45", DEM_aoi_2, &lt;SPAN style="color: #e23d39;"&gt;"TABLE Tobler_input"&lt;/SPAN&gt;, "", Output_backlink_raster)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not sure what kind of syntax needs to go into the Vertical Factor parameter for it to recognize the variable that is the .txt file with Tobler's hiking function in it.&lt;/P&gt;&lt;P&gt;(the code works just fine if I hard code the .txt file location in the Vertical Factor parameter. ie: C:\\user\\folder\\folder\\Tober_function.txt)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Apr 2015 20:31:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-import-a-txt-into-a-custom-python-tool-as-a/m-p/38582#M3018</guid>
      <dc:creator>AaronSchroeder2</dc:creator>
      <dc:date>2015-04-17T20:31:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to import a .txt into a custom python tool as a variable and use the variable as vertical factor of path distance tool</title>
      <link>https://community.esri.com/t5/python-questions/how-to-import-a-txt-into-a-custom-python-tool-as-a/m-p/38583#M3019</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not entirely certain, but your input parameter is inside of the quotes:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;arcpy.gp.PathDistance_sa(LKL_input, PathDist_output, LCover_aoi_reclass, DEM_aoi_1, "", "BINARY 1 45", DEM_aoi_2, &lt;SPAN style="color: #e23d39;"&gt;"TABLE Tobler_input"&lt;/SPAN&gt;, "", Output_backlink_raster)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe just set that as:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;arcpy.gp.PathDistance_sa(LKL_input, PathDist_output, LCover_aoi_reclass, DEM_aoi_1, "", "BINARY 1 45", DEM_aoi_2, &lt;SPAN style="color: #e23d39;"&gt;Tobler_input&lt;/SPAN&gt;, "", Output_backlink_raster)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Apr 2015 21:02:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-import-a-txt-into-a-custom-python-tool-as-a/m-p/38583#M3019</guid>
      <dc:creator>JamesCrandall</dc:creator>
      <dc:date>2015-04-17T21:02:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to import a .txt into a custom python tool as a variable and use the variable as vertical factor of path distance tool</title>
      <link>https://community.esri.com/t5/python-questions/how-to-import-a-txt-into-a-custom-python-tool-as-a/m-p/38584#M3020</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The example I put "TABLE Tobler_input" was just the last thing I tried so I figured just to put it as an example. I tried what you said with just the Tobler_input as the parameter but that also give a similar error where it says 'unable to open file' but has the variable as the file name instead of the files actual name. The funny thing is when I make the path distance tool in model builder with the same parameters and then export it to python script, it works and gives the result I want but what it puts for the vertical factor parameter is the entire path name with the TABLE word in front within quotes. It looks like this: "TABLE C:\\user\\folder\\folder\\Tobler_function.txt". I don't understand why it has TABLE in the quotes but it seems to be an issue when I try to use a variable like Tobler_input instead of the path name in quotes. It also may be worth noting that the custom input parameter UTILS.getTextParamer(0) may not be the one I want. Initially I was using arcpy.GetParameterAsText but after cross referencing a few other custom tools importing a .txt or table file, they all used UTILS.getTextParamer so I figured I would give it a shot. Any ideas on that?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 Apr 2015 02:50:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-import-a-txt-into-a-custom-python-tool-as-a/m-p/38584#M3020</guid>
      <dc:creator>AaronSchroeder2</dc:creator>
      <dc:date>2015-04-18T02:50:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to import a .txt into a custom python tool as a variable and use the variable as vertical factor of path distance tool</title>
      <link>https://community.esri.com/t5/python-questions/how-to-import-a-txt-into-a-custom-python-tool-as-a/m-p/38585#M3021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yeah, I don't know what the SSUtilities library does.&amp;nbsp; Can you print out the variable?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;Tobler_input = UTILS.getTextParamer(0)
print Tobler_input&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 21:30:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-import-a-txt-into-a-custom-python-tool-as-a/m-p/38585#M3021</guid>
      <dc:creator>JamesCrandall</dc:creator>
      <dc:date>2021-12-10T21:30:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to import a .txt into a custom python tool as a variable and use the variable as vertical factor of path distance tool</title>
      <link>https://community.esri.com/t5/python-questions/how-to-import-a-txt-into-a-custom-python-tool-as-a/m-p/38586#M3022</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not actually sure how to get the print statement to work with a custom parameter. Cause PyScripter doesn't prompt for an input so the UTILS.getTextParameter(0) is useless without an ArcMap interface. Do you know how to run it? or do you want me to send you the toblers function .txt file I am trying to use?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Apr 2015 22:09:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-import-a-txt-into-a-custom-python-tool-as-a/m-p/38586#M3022</guid>
      <dc:creator>AaronSchroeder2</dc:creator>
      <dc:date>2015-04-20T22:09:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to import a .txt into a custom python tool as a variable and use the variable as vertical factor of path distance tool</title>
      <link>https://community.esri.com/t5/python-questions/how-to-import-a-txt-into-a-custom-python-tool-as-a/m-p/38587#M3023</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In many cases where a geoprocessing tool requires some more complex type, there is an equivalent class to create an object of that type, usually documented in the type parameter information. The Vertical Factor parameter expects an object derived from one of the &lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#//005m0000001w000000" rel="nofollow noopener noreferrer" target="_blank"&gt;Verticlal Factor types&lt;/A&gt;. In your case, you should be able to use the &lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#//005m000000m7000000" rel="nofollow noopener noreferrer" target="_blank"&gt;VfTable type&lt;/A&gt;:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import arcpy

vertical_factor = arcpy.sa.VfTable("c:/path/vffile.txt")
out_path_dist = arcpy.sa.PathDistance("source.shp", "costraster", "", "", "", "",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; vertical_factor)
out_path_dist.save("C:/workspace/path_dist_by_vf.tif")&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let us know if that does the trick, or if you have any further questions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Shaun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 21:30:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-import-a-txt-into-a-custom-python-tool-as-a/m-p/38587#M3023</guid>
      <dc:creator>ShaunWalbridge</dc:creator>
      <dc:date>2021-12-10T21:30:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to import a .txt into a custom python tool as a variable and use the variable as vertical factor of path distance tool</title>
      <link>https://community.esri.com/t5/python-questions/how-to-import-a-txt-into-a-custom-python-tool-as-a/m-p/38588#M3024</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So I understand that part. The only thing left to bring it all together is instead of using "c:/path/vffile.txt". - use a variable that is assigned for the file. So if we use your example, this is what I want it to look like(this doesn't work): &lt;/P&gt;&lt;OL class="dp-py" start="1" style="font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; color: #5c5c5c; margin-bottom: 1px !important; margin-left: 45px !important;"&gt;&lt;LI&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; font-size: 9pt !important; background-color: inherit;"&gt;&lt;SPAN class="keyword" style="font-weight: inherit; font-style: inherit; color: #006699; font-size: 9pt !important; background-color: inherit;"&gt;import&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt !important; background-color: inherit;"&gt; arcpy&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; font-size: 9pt !important; background-color: inherit;"&gt;Toblers_table = arcpy.getParamter(0)&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; font-size: 9pt !important; background-color: inherit;"&gt;vertical_factor = arcpy.sa.VfTable(&lt;SPAN class="string" style="font-weight: inherit; font-style: inherit; color: blue; font-size: 9pt !important; background-color: inherit;"&gt;Toblers_table&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt !important; background-color: inherit;"&gt;)&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; font-size: 9pt !important; background-color: inherit;"&gt;out_path_dist = arcpy.sa.PathDistance(&lt;SPAN class="string" style="font-weight: inherit; font-style: inherit; color: blue; font-size: 9pt !important; background-color: inherit;"&gt;"source.shp"&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt !important; background-color: inherit;"&gt;, &lt;/SPAN&gt;&lt;SPAN class="string" style="font-weight: inherit; font-style: inherit; color: blue; font-size: 9pt !important; background-color: inherit;"&gt;"costraster"&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt !important; background-color: inherit;"&gt;, "&lt;/SPAN&gt;&lt;SPAN class="string" style="font-weight: inherit; font-style: inherit; color: blue; font-size: 9pt !important; background-color: inherit;"&gt;", "&lt;/SPAN&gt;&lt;SPAN class="string" style="font-weight: inherit; font-style: inherit; color: blue; font-size: 9pt !important; background-color: inherit;"&gt;", "&lt;/SPAN&gt;&lt;SPAN class="string" style="font-weight: inherit; font-style: inherit; color: blue; font-size: 9pt !important; background-color: inherit;"&gt;", "&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt !important; background-color: inherit;"&gt;",v&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; font-size: 9pt !important;"&gt;ertical_factor)&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; color: black; font-size: 9pt !important; background-color: inherit;"&gt;out_path_dist.save(&lt;SPAN class="string" style="font-weight: inherit; font-style: inherit; color: blue; font-size: 9pt !important; background-color: inherit;"&gt;"C:/workspace/path_dist_by_vf.tif"&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt !important; background-color: inherit;"&gt;) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;I am not sure what function to use for the 2nd line of code. I have tried that^ and&lt;/P&gt;&lt;P&gt;Toblers_table = arcpy.getParameterAsText(0)&lt;/P&gt;&lt;P&gt;Toblers_table = UTILS.getTextParameter(0). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was also thinking if there was a function to get the path name of the file so I could just put that in the vertical factor section of the path distance tool. I am just trying to avoid having to code in the "c/apth/vfile.txt". &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2015 22:40:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-import-a-txt-into-a-custom-python-tool-as-a/m-p/38588#M3024</guid>
      <dc:creator>AaronSchroeder2</dc:creator>
      <dc:date>2015-04-21T22:40:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to import a .txt into a custom python tool as a variable and use the variable as vertical factor of path distance tool</title>
      <link>https://community.esri.com/t5/python-questions/how-to-import-a-txt-into-a-custom-python-tool-as-a/m-p/38589#M3025</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When you use &lt;TT&gt;arcpy.getParameter(0)&lt;/TT&gt;, you're asking for an object that contains the parameter, not the value of the parameter itself. If you create a parameter with a &lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#//001500000035000000"&gt;File datatype&lt;/A&gt;, you can instead use the 'GetParameterAsText' call if you'd like the value back as a string. It's hard to tell what you're trying to do specifically since we don't have the toolbox or the utilities module, but I've posted a basic example using a Python toolbox here that works:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/EsriOceans/support/blob/master/tobler/tobler.pyt" title="https://github.com/EsriOceans/support/blob/master/tobler/tobler.pyt"&gt;support/tobler.pyt at master · EsriOceans/support · GitHub&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you check out that repository, it includes sample data to show how it works. Note that with a Python toolbox, we use the &lt;TT&gt;parameters[0].valueAsText&lt;/TT&gt;, but it works the same way as getting the parameter as text would.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2015 23:28:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-import-a-txt-into-a-custom-python-tool-as-a/m-p/38589#M3025</guid>
      <dc:creator>ShaunWalbridge</dc:creator>
      <dc:date>2015-04-21T23:28:28Z</dc:date>
    </item>
  </channel>
</rss>

