<?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: Need help with Python script, loop &amp;amp; adding values in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/need-help-with-python-script-loop-amp-amp-adding/m-p/428525#M14397</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello Shitij,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thank you, I have tried Feature set and made a model with the model builder to test it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It does work, but unfortunately not in the way I expected. Maybe I am doing something wrong?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I used it in ArcMap and defined a feature interactively, but what i got as a selection is a draws polygon (defined schema) and not an interactively selected EXISTING feature. I don´t know how to explain it, but please have a look at the attached image.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can anybody help me with this, please.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you, Romy.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 Aug 2011 16:17:18 GMT</pubDate>
    <dc:creator>RomySchroeder</dc:creator>
    <dc:date>2011-08-12T16:17:18Z</dc:date>
    <item>
      <title>Need help with Python script, loop &amp;amp; adding values</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/need-help-with-python-script-loop-amp-amp-adding/m-p/428522#M14394</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello everybody,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am currently working on a new tool for ArcGis 10. What I have done so far is to build a workflow combining different tools in the Model Builder.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Then I exportet it to a Python script.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now, I want to add a few things to the script which can not be done in the Model Builder.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am a beginner in Python and have difficulties with the next steps.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In the attached sketch I made a draft of how the tool should work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. How to implement a user-defined selection of the input features that should be analyzed, the user should be able to select the objects that should be analyzed&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2. For every selected object an analysis will be performed inside a loop which should create a new output feature (shapefile), these result files should contain the ID of the selected input object as name;&amp;nbsp; (the analyzing process inside the loop is already done )&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;3. One or many field values from each output file should be added as a new field(s) to the input file&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;4. Non-selected objects in the input file should have a "0" in the new field&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Anybody having ideas for that? A script example with some explanations would be very helpful for me an an Python beginner.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Aug 2011 17:15:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/need-help-with-python-script-loop-amp-amp-adding/m-p/428522#M14394</guid>
      <dc:creator>RomySchroeder</dc:creator>
      <dc:date>2011-08-06T17:15:13Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with Python script, loop &amp; adding values</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/need-help-with-python-script-loop-amp-amp-adding/m-p/428523#M14395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;in the meantime I have figured out how to use a Search and an Update Cursor to acces the result values and write them into a new field of the input data. This works for a single result file. But how to do that for a whole list of files?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, I still need help with the user input. It should be possible for the user to select a number of object in a fb for wich the analysis should be done. Something like the mouse selction in ArcMap which then creates a list of features to loop through...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Romy&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Aug 2011 17:07:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/need-help-with-python-script-loop-amp-amp-adding/m-p/428523#M14395</guid>
      <dc:creator>RomySchroeder</dc:creator>
      <dc:date>2011-08-07T17:07:10Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with Python script, loop &amp; adding values</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/need-help-with-python-script-loop-amp-amp-adding/m-p/428524#M14396</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Try &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//002w00000023000000.htm"&gt;Feature Set&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Aug 2011 17:09:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/need-help-with-python-script-loop-amp-amp-adding/m-p/428524#M14396</guid>
      <dc:creator>ShitijMehta</dc:creator>
      <dc:date>2011-08-10T17:09:49Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with Python script, loop &amp; adding values</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/need-help-with-python-script-loop-amp-amp-adding/m-p/428525#M14397</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello Shitij,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thank you, I have tried Feature set and made a model with the model builder to test it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It does work, but unfortunately not in the way I expected. Maybe I am doing something wrong?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I used it in ArcMap and defined a feature interactively, but what i got as a selection is a draws polygon (defined schema) and not an interactively selected EXISTING feature. I don´t know how to explain it, but please have a look at the attached image.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can anybody help me with this, please.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you, Romy.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Aug 2011 16:17:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/need-help-with-python-script-loop-amp-amp-adding/m-p/428525#M14397</guid>
      <dc:creator>RomySchroeder</dc:creator>
      <dc:date>2011-08-12T16:17:18Z</dc:date>
    </item>
  </channel>
</rss>

