<?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 Python scripting from CLI in ArcGIS CityEngine Questions</title>
    <link>https://community.esri.com/t5/arcgis-cityengine-questions/python-scripting-from-cli/m-p/209707#M2748</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'm new to CityEngine, I started playing around with the python scripting interface. I was wondering if it is possible to use the same python scripting interface and CE functionalities from outside CityEngine, so without starting the application GUI. I would like to just run my scripts automatically from a Unix console, on a computer where I installed CE. Is that possible? Is there any ready-to-use interface for that?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;My final goal is that of completely automatize the process of downloading GIS info from OSM, creating my 3D city and exporting it, without using the CE GUI.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 Dec 2013 06:18:51 GMT</pubDate>
    <dc:creator>CristianoPedersini</dc:creator>
    <dc:date>2013-12-10T06:18:51Z</dc:date>
    <item>
      <title>Python scripting from CLI</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/python-scripting-from-cli/m-p/209707#M2748</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'm new to CityEngine, I started playing around with the python scripting interface. I was wondering if it is possible to use the same python scripting interface and CE functionalities from outside CityEngine, so without starting the application GUI. I would like to just run my scripts automatically from a Unix console, on a computer where I installed CE. Is that possible? Is there any ready-to-use interface for that?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;My final goal is that of completely automatize the process of downloading GIS info from OSM, creating my 3D city and exporting it, without using the CE GUI.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Dec 2013 06:18:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/python-scripting-from-cli/m-p/209707#M2748</guid>
      <dc:creator>CristianoPedersini</dc:creator>
      <dc:date>2013-12-10T06:18:51Z</dc:date>
    </item>
    <item>
      <title>Re: Python scripting from CLI</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/python-scripting-from-cli/m-p/209708#M2749</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;BR /&gt;&lt;SPAN&gt;this is currently not possible. you need to run an instance of CityEngine for these tasks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;would be nice of course.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;the closest thing possible for this is to run an instance of CE and work with listeners.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ok ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;matt&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Dec 2013 10:15:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/python-scripting-from-cli/m-p/209708#M2749</guid>
      <dc:creator>MatthiasBuehler1</dc:creator>
      <dc:date>2013-12-10T10:15:10Z</dc:date>
    </item>
    <item>
      <title>Re: Python scripting from CLI</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/python-scripting-from-cli/m-p/209709#M2750</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;thank you for your response! Can you give me some more detailed hints? Are you talking about using Java event listeners? Don't I need the CityEngine GUI code for this approach?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Dec 2013 14:19:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/python-scripting-from-cli/m-p/209709#M2750</guid>
      <dc:creator>CristianoPedersini</dc:creator>
      <dc:date>2013-12-10T14:19:54Z</dc:date>
    </item>
    <item>
      <title>Re: Python scripting from CLI</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/python-scripting-from-cli/m-p/209710#M2751</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I was talking about Python event listeners.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't really have experience with this, it's just something that one of my coworkers set up quite some time ago to check some things. Rather a hack, of course. But yes, you need CE started ( the GUI ). There's no way around this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You could try the same thing with ArcGIS, using the CityEngine GP tool, would that be an option ? ( basically aggregating the data in ArcGIS and generate the geometries in there )&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;m.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Dec 2013 11:45:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/python-scripting-from-cli/m-p/209710#M2751</guid>
      <dc:creator>MatthiasBuehler1</dc:creator>
      <dc:date>2013-12-11T11:45:40Z</dc:date>
    </item>
    <item>
      <title>Re: Python scripting from CLI</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/python-scripting-from-cli/m-p/209711#M2752</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ok, of course I don't have any problem about starting CE GUI first.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyway, if I can just setup a default script to be launched after the CE startup, that would be enough for me.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there any configuration option like that? Maybe I can use the underlying OSGI framework?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sticking with CE will be the best option for me right now. In the worst case scenario I can use xdtool to simulate the F9 key event and run the python script.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cristiano&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Dec 2013 03:44:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/python-scripting-from-cli/m-p/209711#M2752</guid>
      <dc:creator>CristianoPedersini</dc:creator>
      <dc:date>2013-12-12T03:44:50Z</dc:date>
    </item>
    <item>
      <title>Re: Python scripting from CLI</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/python-scripting-from-cli/m-p/209712#M2753</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;there's a startup.py script for such cases. check the python docs in the chapter 'special scripts'.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;there, you can add any python code you need to run directly at startup.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ok ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;m.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Dec 2013 05:42:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/python-scripting-from-cli/m-p/209712#M2753</guid>
      <dc:creator>MatthiasBuehler1</dc:creator>
      <dc:date>2013-12-12T05:42:05Z</dc:date>
    </item>
    <item>
      <title>Re: Python scripting from CLI</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/python-scripting-from-cli/m-p/209713#M2754</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;OK I got it! works.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you very much!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cristiano&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Dec 2013 07:03:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/python-scripting-from-cli/m-p/209713#M2754</guid>
      <dc:creator>CristianoPedersini</dc:creator>
      <dc:date>2013-12-12T07:03:30Z</dc:date>
    </item>
  </channel>
</rss>

