<?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: Python export from Console in ArcGIS CityEngine Questions</title>
    <link>https://community.esri.com/t5/arcgis-cityengine-questions/python-export-from-console/m-p/12193#M129</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;the log is created in the export dir.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;if nothing happens, there's propably an error going on.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;can you check the 'Log Window', if an error (red cross) is thrown ? If so, double click the error to open the stack trace.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;let me know.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 Apr 2012 12:46:01 GMT</pubDate>
    <dc:creator>MatthiasBuehler1</dc:creator>
    <dc:date>2012-04-16T12:46:01Z</dc:date>
    <item>
      <title>Python export from Console</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/python-export-from-console/m-p/12192#M128</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm a little puzzled,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm trying to run a simple export from the the console that will: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1) run the export script I have&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2) log output to a file (I'm tired of going to the log window and manually having to tell it to save a log file to a specific location that i can read more comfortably in an IDE after each export)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Currently looks like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;

def export():
&amp;nbsp;&amp;nbsp;&amp;nbsp; """
&amp;nbsp;&amp;nbsp;&amp;nbsp; Initiate an export
&amp;nbsp;&amp;nbsp;&amp;nbsp; Use the script export settings
&amp;nbsp;&amp;nbsp;&amp;nbsp; """
&amp;nbsp;&amp;nbsp;&amp;nbsp; settings = ScriptExportModelSettings()
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; settings.getMiscOptionsBatchBehavior("OVERWRITE")
&amp;nbsp;&amp;nbsp;&amp;nbsp; settings.setMiscOptionsWriteExportLog(True) 
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; settings.setMiscOptionsScript("exportInstances.py")

&amp;nbsp;&amp;nbsp;&amp;nbsp; ce.export(ce.selection(), settings, False )


&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;SPAN&gt;If I comment out, settings.setMiscOptionsWriteExportLog(True) and&amp;nbsp; settings.getMiscOptionsBatchBehavior("OVERWRITE") , &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;it all springs into life and runs the export. Great! (It exports a text File that of instance locations as per your examples)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If they are there, nothing happens.. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; So:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1) this is confusing behaviour?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2) how do i specify where a log file is to be dumped?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3) where is a log file dumped if nothing is specified? (I guess the default is next to whereever the output from the export is, but its unclear since this is a script based export)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Apr 2012 22:49:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/python-export-from-console/m-p/12192#M128</guid>
      <dc:creator>RobertHexter</dc:creator>
      <dc:date>2012-04-12T22:49:11Z</dc:date>
    </item>
    <item>
      <title>Re: Python export from Console</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/python-export-from-console/m-p/12193#M129</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;the log is created in the export dir.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;if nothing happens, there's propably an error going on.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;can you check the 'Log Window', if an error (red cross) is thrown ? If so, double click the error to open the stack trace.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;let me know.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Apr 2012 12:46:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/python-export-from-console/m-p/12193#M129</guid>
      <dc:creator>MatthiasBuehler1</dc:creator>
      <dc:date>2012-04-16T12:46:01Z</dc:date>
    </item>
    <item>
      <title>Re: Python export from Console</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/python-export-from-console/m-p/12194#M130</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Okay I realised the error of my python ways...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;settings.getMiscOptionsBatchBehavior("OVERWRITE")&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;should have been&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;settings.setMiscOptionsBatchBehavior("OVERWRITE")&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks for the response!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Apr 2012 13:51:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/python-export-from-console/m-p/12194#M130</guid>
      <dc:creator>RobertHexter</dc:creator>
      <dc:date>2012-04-27T13:51:11Z</dc:date>
    </item>
    <item>
      <title>Re: Python export from Console</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/python-export-from-console/m-p/12195#M131</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;oooh, that's a tricky one to find .. &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Apr 2012 15:19:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/python-export-from-console/m-p/12195#M131</guid>
      <dc:creator>MatthiasBuehler1</dc:creator>
      <dc:date>2012-04-27T15:19:43Z</dc:date>
    </item>
  </channel>
</rss>

