<?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: Export to Excel using Model Builder in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/export-to-excel-using-model-builder/m-p/268145#M9223</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Enrico,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think the short answer is no to both of your questions.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Duncan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Jan 2012 13:44:25 GMT</pubDate>
    <dc:creator>DuncanHornby</dc:creator>
    <dc:date>2012-01-30T13:44:25Z</dc:date>
    <item>
      <title>Export to Excel using Model Builder</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/export-to-excel-using-model-builder/m-p/268144#M9222</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've calculated some indicators values (for wetland evolution analysis), using the Model Builder system. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The results are saved as .dbf file (or as an attribute table linked to polygon features).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm wondering if: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1) it is possible to export directly from ArcGis to Excel using Model Builder (select a tool and automatically open Excel with the .dbf selected)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2) show on screen the .dbf created at the end o the processing, without to go in the source tab in the TOC and select manually the .dbf file&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks a lot for any help and suggestion&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Enrico Bonino&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jan 2012 06:39:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/export-to-excel-using-model-builder/m-p/268144#M9222</guid>
      <dc:creator>boninoenrico</dc:creator>
      <dc:date>2012-01-26T06:39:42Z</dc:date>
    </item>
    <item>
      <title>Re: Export to Excel using Model Builder</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/export-to-excel-using-model-builder/m-p/268145#M9223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Enrico,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think the short answer is no to both of your questions.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Duncan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jan 2012 13:44:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/export-to-excel-using-model-builder/m-p/268145#M9223</guid>
      <dc:creator>DuncanHornby</dc:creator>
      <dc:date>2012-01-30T13:44:25Z</dc:date>
    </item>
    <item>
      <title>Re: Export to Excel using Model Builder</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/export-to-excel-using-model-builder/m-p/268146#M9224</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;1) it is possible to export directly from ArcGis to Excel using Model Builder (select a tool and automatically open Excel with the .dbf selected)&lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Normally .dbf are associated with .dbf files by the MS Office installation, so you should be able to do this with the Calculate Value tool, using Python and the Windows "start" command to launch the file as if you had double-clicked it in Windows Explorer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Be sure you have the the .dbf (element "output_dbf") be a precondition so it will launch after the .dbf is created&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The syntax below r, double quotes, model element name in percents, double quotes) is critical so python gets the path unmodified by parsing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Calculate Value tool arguments:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Expression: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;launch(r"%output_dbf%")&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Code block:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
def launch(path):
&amp;nbsp;&amp;nbsp;&amp;nbsp; import os
&amp;nbsp;&amp;nbsp;&amp;nbsp; dir = os.path.dirname(path)
&amp;nbsp;&amp;nbsp;&amp;nbsp; file = os.path.basename(path)
&amp;nbsp;&amp;nbsp;&amp;nbsp; os.system("start /d \"%s\" %s" % (dir,file))
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If the file is open in ArcGIS and Excel at the same time, you will likely run into file locking issues and will have to close either one or the other to write to the file. You have been warned!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 13:08:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/export-to-excel-using-model-builder/m-p/268146#M9224</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2021-12-11T13:08:10Z</dc:date>
    </item>
  </channel>
</rss>

