<?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: Clip and Ship example, parameter index in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/clip-and-ship-example-parameter-index/m-p/624456#M48688</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you &lt;A href="https://community.esri.com/migrated-users/86013"&gt;Mehdi Pira&lt;/A&gt;‌, you are spot on. I didn't not realise you can define the parameters under the scripts. Thank you &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Jul 2020 06:35:56 GMT</pubDate>
    <dc:creator>VictorTey</dc:creator>
    <dc:date>2020-07-07T06:35:56Z</dc:date>
    <item>
      <title>Clip and Ship example, parameter index</title>
      <link>https://community.esri.com/t5/python-questions/clip-and-ship-example-parameter-index/m-p/624454#M48686</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I am going through the clip and ship example, can some please help me understand how does&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gp.getparameterastext(0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the index match up?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/499167_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my parameter&amp;nbsp;has 5 parameters&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/499168_pastedImage_2.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However in the code there are 7 parameter. In the parameter above, output zip should have been 4 however in the code it is using 6. if coordinateSystem and customCoordSystemFolder are not set as parameter (just variable) how does it know the index of it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-3 jive-image" src="https://community.esri.com/legacyfs/online/499187_pastedImage_3.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also how do you configure the in_memory attribute? Can i just declare a in_memory variable by specifying in_memory\whatever I want? how does it know what the attributes are?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-4" src="https://community.esri.com/legacyfs/online/499188_pastedImage_4.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jul 2020 10:49:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/clip-and-ship-example-parameter-index/m-p/624454#M48686</guid>
      <dc:creator>VictorTey</dc:creator>
      <dc:date>2020-07-06T10:49:49Z</dc:date>
    </item>
    <item>
      <title>Re: Clip and Ship example, parameter index</title>
      <link>https://community.esri.com/t5/python-questions/clip-and-ship-example-parameter-index/m-p/624455#M48687</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.esri.com/migrated-users/327767"&gt;Victor Tey&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Extract Data tool in ArcToolbox contains 7 parameters. It's zero-indexed.&lt;/P&gt;&lt;P&gt;If you go to the properties of the tool and click parameters, you will see there are 7 parameters already set up.&lt;IMG class="image-1 jive-image" height="607" src="https://community.esri.com/legacyfs/online/499300_pastedImage_6.png" width="443" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to update or change any parameters, you need to make a copy of the tool and paste it somewhere else e.g. Toolbox.tbx in Home -&amp;nbsp;Documents\ArcGIS directory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Area of Interest you are pointing to is a feature set. The way I use is export the model builder into a script, do the changes there, make a tool out of it.&amp;nbsp;&lt;/P&gt;&lt;PRE class="language-python line-numbers"&gt;&lt;CODE&gt;Area_of_Interest &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"in_memory\\{3429FFB4-5050-4D6E-B6BF-3266C230BC5F}"&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Then bring it back into a new model builder should you wish to use it with other tools in model builder, otherwise you can carry on with the script.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jul 2020 06:26:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/clip-and-ship-example-parameter-index/m-p/624455#M48687</guid>
      <dc:creator>MehdiPira1</dc:creator>
      <dc:date>2020-07-07T06:26:10Z</dc:date>
    </item>
    <item>
      <title>Re: Clip and Ship example, parameter index</title>
      <link>https://community.esri.com/t5/python-questions/clip-and-ship-example-parameter-index/m-p/624456#M48688</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you &lt;A href="https://community.esri.com/migrated-users/86013"&gt;Mehdi Pira&lt;/A&gt;‌, you are spot on. I didn't not realise you can define the parameters under the scripts. Thank you &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jul 2020 06:35:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/clip-and-ship-example-parameter-index/m-p/624456#M48688</guid>
      <dc:creator>VictorTey</dc:creator>
      <dc:date>2020-07-07T06:35:56Z</dc:date>
    </item>
  </channel>
</rss>

