<?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 Can I call python scripts outside of the GUI? in ArcGIS CityEngine Questions</title>
    <link>https://community.esri.com/t5/arcgis-cityengine-questions/can-i-call-python-scripts-outside-of-the-gui/m-p/631927#M8403</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to call the ce python scripts without having to run the gui so I can automate tasks from command line.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Feb 2016 03:12:09 GMT</pubDate>
    <dc:creator>ChristianShiel1</dc:creator>
    <dc:date>2016-02-03T03:12:09Z</dc:date>
    <item>
      <title>Can I call python scripts outside of the GUI?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/can-i-call-python-scripts-outside-of-the-gui/m-p/631927#M8403</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to call the ce python scripts without having to run the gui so I can automate tasks from command line.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Feb 2016 03:12:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/can-i-call-python-scripts-outside-of-the-gui/m-p/631927#M8403</guid>
      <dc:creator>ChristianShiel1</dc:creator>
      <dc:date>2016-02-03T03:12:09Z</dc:date>
    </item>
    <item>
      <title>Re: Can I call python scripts outside of the GUI?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/can-i-call-python-scripts-outside-of-the-gui/m-p/631928#M8404</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;not much&amp;nbsp; listed, but they are related to tools&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://desktop.arcgis.com/en/arcmap/10.3/tools/3d-analyst-toolbox/features-from-cityengine-rules.htm" title="http://desktop.arcgis.com/en/arcmap/10.3/tools/3d-analyst-toolbox/features-from-cityengine-rules.htm"&gt;Features From CityEngine Rules—Help | ArcGIS for Desktop&lt;/A&gt;and there is nothing listed in the arcpy information that accompanies arcmap&amp;nbsp;&amp;nbsp; &lt;A href="http://desktop.arcgis.com/en/arcmap/10.3/analyze/arcpy/what-is-arcpy-.htm" title="http://desktop.arcgis.com/en/arcmap/10.3/analyze/arcpy/what-is-arcpy-.htm"&gt;What is ArcPy?—Help | ArcGIS for Desktop&lt;/A&gt;&amp;nbsp;&amp;nbsp; unless you have separate documentation and the python access is cryptically kept separate.&lt;/P&gt;&lt;P&gt;And I am assuming you are referring to this reference to python &lt;A href="http://www.esri.com/software/cityengine/features" title="http://www.esri.com/software/cityengine/features"&gt;Esri CityEngine | Features&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Feb 2016 04:27:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/can-i-call-python-scripts-outside-of-the-gui/m-p/631928#M8404</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2016-02-03T04:27:30Z</dc:date>
    </item>
    <item>
      <title>Re: Can I call python scripts outside of the GUI?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/can-i-call-python-scripts-outside-of-the-gui/m-p/631929#M8405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want access to these (the non GUI related) functions:&lt;/P&gt;&lt;P&gt;&lt;A href="http://cehelp.esri.com/help/index.jsp?topic=/com.procedural.cityengine.help/html/manual/python/python_iface.html" title="http://cehelp.esri.com/help/index.jsp?topic=/com.procedural.cityengine.help/html/manual/python/python_iface.html"&gt;Help -&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Feb 2016 04:59:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/can-i-call-python-scripts-outside-of-the-gui/m-p/631929#M8405</guid>
      <dc:creator>ChristianShiel1</dc:creator>
      <dc:date>2016-02-03T04:59:18Z</dc:date>
    </item>
    <item>
      <title>Re: Can I call python scripts outside of the GUI?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/can-i-call-python-scripts-outside-of-the-gui/m-p/631930#M8406</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Christian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had a similar question two days ago. Still no answer yet:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/thread/171641"&gt;CityEngine python commands in external IDE?&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Carl&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Feb 2016 06:56:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/can-i-call-python-scripts-outside-of-the-gui/m-p/631930#M8406</guid>
      <dc:creator>CarlBester1</dc:creator>
      <dc:date>2016-02-03T06:56:20Z</dc:date>
    </item>
    <item>
      <title>Re: Can I call python scripts outside of the GUI?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/can-i-call-python-scripts-outside-of-the-gui/m-p/631931#M8407</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, you have to have CityEngine installed and you have to know the rule package location on disk.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;gt;&amp;gt;&amp;gt; # ---- CityEngine ---
&amp;gt;&amp;gt;&amp;gt; import arcpy
&amp;gt;&amp;gt;&amp;gt; import sys
&lt;SPAN&gt; &amp;gt;&amp;gt;&amp;gt; # &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fpro.arcgis.com%2Fen%2Fpro-app%2Ftool-reference%2F3d-analyst%2Ffeatures-from-cityengine-rules.htm" target="_blank"&gt;http://pro.arcgis.com/en/pro-app/tool-reference/3d-analyst/features-from-cityengine-rules.htm&lt;/A&gt;
&lt;SPAN&gt;&amp;gt;&amp;gt;&amp;gt; # &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fdesktop.arcgis.com%2Fen%2Farcmap%2F10.3%2Ftools%2F3d-analyst-toolbox%2Ffeatures-from-cityengine-rules.htm" target="_blank"&gt;http://desktop.arcgis.com/en/arcmap/10.3/tools/3d-analyst-toolbox/features-from-cityengine-rules.htm&lt;/A&gt;
&amp;gt;&amp;gt;&amp;gt;
&amp;gt;&amp;gt;&amp;gt; arcpy.CheckOutExtension("3D")
'CheckedOut'
&amp;gt;&amp;gt;&amp;gt;
&amp;gt;&amp;gt;&amp;gt; # syntax
&amp;gt;&amp;gt;&amp;gt; # FeaturesFromCityEngineRules_NOALIAS (in_features, in_rule_package, out_feature_class)
&amp;gt;&amp;gt;&amp;gt; # arcpy.FeaturesFromCityEngineRules_3d("in_polygons", "rules.rpk", "out_multipatches")&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So in the last example, you are using the rules.rpk and importing 3D features and exporting multipatches.&amp;nbsp; The link I sent &lt;A href="http://www.esri.com/software/cityengine/features" title="http://www.esri.com/software/cityengine/features" rel="nofollow noopener noreferrer" target="_blank"&gt;Esri CityEngine | Features&lt;/A&gt;&amp;nbsp; provides some overview.&amp;nbsp; So since I don't have it installed, then in theory, you should be able to import a package and if you know what it is you want to do, you go to here&lt;/P&gt;&lt;P&gt;(the python interface help&amp;nbsp;&amp;nbsp; &lt;A href="http://cehelp.esri.com/help/index.jsp?topic=/com.procedural.cityengine.help/html/manual/python/python_iface.html" rel="nofollow noopener noreferrer" target="_blank"&gt;http://cehelp.esri.com/help/index.jsp?topic=/com.procedural.cityengine.help/html/manual/python/python_iface.html&lt;/A&gt;​&lt;/P&gt;&lt;P&gt;Sorry, I don't have time to download the trial and give it a run, but in the documentation, they have some examples etc&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 02:53:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/can-i-call-python-scripts-outside-of-the-gui/m-p/631931#M8407</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2021-12-12T02:53:34Z</dc:date>
    </item>
    <item>
      <title>Re: Can I call python scripts outside of the GUI?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/can-i-call-python-scripts-outside-of-the-gui/m-p/631932#M8408</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm sure there was an old post on here from a few years ago that answered this question.&amp;nbsp; Fairly sure the answer was no - couldn't find it and I'm not sure if the answer is likely to have changed - this article is the only thing I could find:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://theanswerweb.com/data36/2015/07/27/python-use-esri-cityengine-features-external-code/" title="http://theanswerweb.com/data36/2015/07/27/python-use-esri-cityengine-features-external-code/"&gt;python – Use Esri CityEngine features external code – | The Answer Web&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Feb 2016 13:37:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/can-i-call-python-scripts-outside-of-the-gui/m-p/631932#M8408</guid>
      <dc:creator>BenLeslie1</dc:creator>
      <dc:date>2016-02-03T13:37:16Z</dc:date>
    </item>
    <item>
      <title>Re: Can I call python scripts outside of the GUI?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/can-i-call-python-scripts-outside-of-the-gui/m-p/631933#M8409</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I do not understand why there is no official answer. I am confused as to how the support for CityEngine works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems that the console is running Jython so I wonder if it may have to go through Jython?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Feb 2016 00:26:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/can-i-call-python-scripts-outside-of-the-gui/m-p/631933#M8409</guid>
      <dc:creator>ChristianShiel1</dc:creator>
      <dc:date>2016-02-04T00:26:15Z</dc:date>
    </item>
    <item>
      <title>Re: Can I call python scripts outside of the GUI?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/can-i-call-python-scripts-outside-of-the-gui/m-p/631934#M8410</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Christian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In general, with CityEngine, an official answer will come from our R&amp;amp;D center in Zurich. That is where CityEngine is developed. Unfortunately, when we get to work in the mornings, at least here in the Redlands office, they are 9 hours ahead of us, and are just getting off work when we get in. Hence an overnight lag in some answers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have CGA questions, I can answer them, but I can't answer this question. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would agree with Ben's answer. You probably must run the CE Python (yes, Jython) commands from inside CE. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dan is right that you can run the GP Tool, "Features from CityEngine Rules", from an external IDE, but you want to run things from the CE libraries.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/170932"&gt;Thomas Fuchs&lt;/A&gt;​ or &lt;A href="https://community.esri.com/migrated-users/172220"&gt;Cheryl Lau&lt;/A&gt;​, can you ask someone about this issue? It is also asked in Carl's post here: &lt;A href="https://community.esri.com/thread/171641"&gt;CityEngine python commands in external IDE?&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Feb 2016 00:45:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/can-i-call-python-scripts-outside-of-the-gui/m-p/631934#M8410</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2016-02-04T00:45:41Z</dc:date>
    </item>
    <item>
      <title>Re: Can I call python scripts outside of the GUI?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/can-i-call-python-scripts-outside-of-the-gui/m-p/631935#M8411</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, sorry, it is currently not possible to call CE python scripts from outside of the GUI/externally.&amp;nbsp; It's good to know that there's a demand for this though, so we appreciate your post.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Feb 2016 17:58:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/can-i-call-python-scripts-outside-of-the-gui/m-p/631935#M8411</guid>
      <dc:creator>CherylLau</dc:creator>
      <dc:date>2016-02-04T17:58:59Z</dc:date>
    </item>
  </channel>
</rss>

