<?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: Install py file in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/install-py-file/m-p/242302#M18836</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm assuming that you are asking how to turn those script changes into tool parameters. Here's a short course using the first change (strWorkspace - Location of shapefile):&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;First, find the line in the Python file that starts with "strWorkspace =", replace everything after the equals sign with "gp.GetParameterAsText(0)". Save and close the Python script.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Open the tool's properties, and go to the Parameters tab. In the first box enter a label for the parameter, for example, "Location of Shapefile". For the parameter type, select an appropriate type from the drop-down list. In this case it would be something like "Folder" or "Workspace" (I'm doing this from memory so I don't remember the exact values).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Repeat those two steps for the remainder of the changes you want to turn into parameters. Increment the GetParameterAsText value by 1 each time.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 May 2012 14:49:45 GMT</pubDate>
    <dc:creator>BruceNielsen</dc:creator>
    <dc:date>2012-05-07T14:49:45Z</dc:date>
    <item>
      <title>Install py file</title>
      <link>https://community.esri.com/t5/python-questions/install-py-file/m-p/242299#M18833</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello there&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am new to the site and relatively new to arcgis. I m using ArcGIS 9.3. I ve downloaded this python script (i am not aware of programming)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Script : &lt;/SPAN&gt;&lt;A href="http://arcscripts.esri.com/details.asp?dbid=15144"&gt;http://arcscripts.esri.com/details.asp?dbid=15144&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any one can tell me (from start to finish) how will i install it to arcgis?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;(i have an attachment with the file)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 May 2012 12:22:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/install-py-file/m-p/242299#M18833</guid>
      <dc:creator>HarisPantelis</dc:creator>
      <dc:date>2012-05-07T12:22:55Z</dc:date>
    </item>
    <item>
      <title>Re: Install py file</title>
      <link>https://community.esri.com/t5/python-questions/install-py-file/m-p/242300#M18834</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;To install, first open ArcToolbox in either ArcMap or ArcCatalog. Right-click in ArcToolbox and select "Add Toolbox...". Navigate to the folder where you un-zipped the download, select the .tbx file, and click the Open button.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To edit the script, open the toolbox you just added, right-click the tool and select "Edit".&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 May 2012 12:59:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/install-py-file/m-p/242300#M18834</guid>
      <dc:creator>BruceNielsen</dc:creator>
      <dc:date>2012-05-07T12:59:17Z</dc:date>
    </item>
    <item>
      <title>Re: Install py file</title>
      <link>https://community.esri.com/t5/python-questions/install-py-file/m-p/242301#M18835</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;To install, first open ArcToolbox in either ArcMap or ArcCatalog. Right-click in ArcToolbox and select "Add Toolbox...". Navigate to the folder where you un-zipped the download, select the .tbx file, and click the Open button.&lt;BR /&gt;&lt;BR /&gt;To edit the script, open the toolbox you just added, right-click the tool and select "Edit".&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have done that , and when i opened the py file (edit) i came with that image (1.jpg) attached..&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I also found that i can alter the parametres in the foto 2 (untitled.png)..How can i do that?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I ve added the script also (new toolbox--&amp;gt;add script) and i am in the "parameter'' window (2.jpg). Now what?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 May 2012 13:23:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/install-py-file/m-p/242301#M18835</guid>
      <dc:creator>HarisPantelis</dc:creator>
      <dc:date>2012-05-07T13:23:41Z</dc:date>
    </item>
    <item>
      <title>Re: Install py file</title>
      <link>https://community.esri.com/t5/python-questions/install-py-file/m-p/242302#M18836</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm assuming that you are asking how to turn those script changes into tool parameters. Here's a short course using the first change (strWorkspace - Location of shapefile):&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;First, find the line in the Python file that starts with "strWorkspace =", replace everything after the equals sign with "gp.GetParameterAsText(0)". Save and close the Python script.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Open the tool's properties, and go to the Parameters tab. In the first box enter a label for the parameter, for example, "Location of Shapefile". For the parameter type, select an appropriate type from the drop-down list. In this case it would be something like "Folder" or "Workspace" (I'm doing this from memory so I don't remember the exact values).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Repeat those two steps for the remainder of the changes you want to turn into parameters. Increment the GetParameterAsText value by 1 each time.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 May 2012 14:49:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/install-py-file/m-p/242302#M18836</guid>
      <dc:creator>BruceNielsen</dc:creator>
      <dc:date>2012-05-07T14:49:45Z</dc:date>
    </item>
    <item>
      <title>Re: Install py file</title>
      <link>https://community.esri.com/t5/python-questions/install-py-file/m-p/242303#M18837</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks bruce but &lt;/SPAN&gt;&lt;SPAN style="text-decoration:underline;"&gt;there is no "strWorkspace" word&lt;/SPAN&gt;&lt;SPAN&gt; inside the python file..:( Have you seen the file in notepad? ( i dont know about python..I guess the language starts where it says &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&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;&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; # Collect the input paramers&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&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;&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; strAsciiFile = string.replace(gp.getparameterastext(0),"\\","/").....&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Furthermore, the py file says:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;USER MUST MODIFY PARAMETERS&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; #&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;########################################################################&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;# &lt;/SPAN&gt;&lt;STRONG&gt;strWorkspace - location of shapefile &lt;/STRONG&gt;&lt;SPAN&gt;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;# &lt;/SPAN&gt;&lt;STRONG&gt;strFileNames - source LAS files&amp;nbsp; &lt;/STRONG&gt;&lt;SPAN&gt;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;# &lt;/SPAN&gt;&lt;STRONG&gt;strShapeFile - name of shapefile to be created&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;SPAN&gt;&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; # &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;# &lt;/SPAN&gt;&lt;STRONG&gt;strProduct - ArcView, ArcEditor or ArcInfo. Not everyone has ArcInfo&lt;/STRONG&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Look at the images below..should it be like that? or what?:(&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 May 2012 15:05:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/install-py-file/m-p/242303#M18837</guid>
      <dc:creator>HarisPantelis</dc:creator>
      <dc:date>2012-05-07T15:05:37Z</dc:date>
    </item>
    <item>
      <title>Re: Install py file</title>
      <link>https://community.esri.com/t5/python-questions/install-py-file/m-p/242304#M18838</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It looks like the author didn't pay too much attention to updating comments when updating her code. Unfortunately she didn't include a tool in the toolbox to run it either.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here's what I would recommend: Add the toolbox included in the zip package to ArcMap or ArcCatalog. Right-click on the toolbox and select Add-&amp;gt; Script. Work your way through the wizard, and when you get to the parameters, you only need to enter one: The label will reference the input text file, and the type will be file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Once that is completed, the tool should be ready to run.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 May 2012 19:14:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/install-py-file/m-p/242304#M18838</guid>
      <dc:creator>BruceNielsen</dc:creator>
      <dc:date>2012-05-07T19:14:52Z</dc:date>
    </item>
    <item>
      <title>Re: Install py file</title>
      <link>https://community.esri.com/t5/python-questions/install-py-file/m-p/242305#M18839</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I just did what you said but, it doesnt seem to work either..&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When i run the script it says :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;DIV align="center"&gt;&lt;P align="left"&gt;&lt;SPAN style="font-style:italic;"&gt;"Running script ASCFileToXYZFile...&lt;BR /&gt;&amp;lt;type 'exceptions.ImportError'&amp;gt;: No module named os&lt;BR /&gt;Failed to execute (ASCFileToXYZFile).&lt;BR /&gt;End Time: Tue May 08 00:41:06 2012 (Elapsed Time: 0.00 seconds)"&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;It is wrong, as it doesnt have an "output" option too:(&lt;BR /&gt;&lt;BR /&gt;* i run both &lt;SPAN style="text-decoration:underline;"&gt;script&lt;/SPAN&gt; and &lt;SPAN style="text-decoration:underline;"&gt;ASCII Raster to XYZ file&lt;/SPAN&gt; (from zzzSMZ Toolbox)&lt;BR /&gt;&lt;BR /&gt;Any other thoughts?&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 May 2012 20:45:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/install-py-file/m-p/242305#M18839</guid>
      <dc:creator>HarisPantelis</dc:creator>
      <dc:date>2012-05-07T20:45:17Z</dc:date>
    </item>
  </channel>
</rss>

