<?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 newbie question in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/newbie-question/m-p/56020#M4424</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;We're currently using Arcgis 10 and we use some vba code but in the next version vba won't be supported anymore so I'm looking for a python solution.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Our vba code works like this:&amp;nbsp; The user selects a polygon then presses a button.&amp;nbsp; The code then selects all polygons from all the other layers that intersect the selected polygon.&amp;nbsp; Next an excel file is written with the data of the tables (a report)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is this possible with Python?&amp;nbsp; And how do I start?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Jun 2011 11:49:12 GMT</pubDate>
    <dc:creator>LobkeDeblaere</dc:creator>
    <dc:date>2011-06-10T11:49:12Z</dc:date>
    <item>
      <title>newbie question</title>
      <link>https://community.esri.com/t5/python-questions/newbie-question/m-p/56020#M4424</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;We're currently using Arcgis 10 and we use some vba code but in the next version vba won't be supported anymore so I'm looking for a python solution.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Our vba code works like this:&amp;nbsp; The user selects a polygon then presses a button.&amp;nbsp; The code then selects all polygons from all the other layers that intersect the selected polygon.&amp;nbsp; Next an excel file is written with the data of the tables (a report)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is this possible with Python?&amp;nbsp; And how do I start?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jun 2011 11:49:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/newbie-question/m-p/56020#M4424</guid>
      <dc:creator>LobkeDeblaere</dc:creator>
      <dc:date>2011-06-10T11:49:12Z</dc:date>
    </item>
    <item>
      <title>Re: newbie question</title>
      <link>https://community.esri.com/t5/python-questions/newbie-question/m-p/56021#M4425</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It is possible! Now that you can make a script tool into a button on the toolbars its even better. You would have to tell the script which layer has the selection but thats the only step for the end user.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;A selection is made,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;script gets a list of the layers in the mxd,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;select by location on each layer with selected layer as input,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;read other layers (cursors honor selection) and write the values out to a CSV.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You can export straight to an excel file instead of a csv but you have to use win32com and that might be more complicated than is worth dealing with in this case.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jun 2011 12:02:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/newbie-question/m-p/56021#M4425</guid>
      <dc:creator>ChrisMathers</dc:creator>
      <dc:date>2011-06-10T12:02:33Z</dc:date>
    </item>
    <item>
      <title>Re: newbie question</title>
      <link>https://community.esri.com/t5/python-questions/newbie-question/m-p/56022#M4426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can try using openpyxl to write the excel 2007 documents: &lt;/SPAN&gt;&lt;A href="http://packages.python.org/openpyxl/"&gt;http://packages.python.org/openpyxl/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For pre-2007 documents try &lt;/SPAN&gt;&lt;A href="http://www.python-excel.org/"&gt;http://www.python-excel.org/&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jun 2011 13:33:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/newbie-question/m-p/56022#M4426</guid>
      <dc:creator>AndrewChapkowski</dc:creator>
      <dc:date>2011-06-10T13:33:14Z</dc:date>
    </item>
  </channel>
</rss>

