<?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: Is it possible to develop a window like Dashboard in CityEngine in ArcGIS CityEngine Questions</title>
    <link>https://community.esri.com/t5/arcgis-cityengine-questions/is-it-possible-to-develop-a-window-like-dashboard/m-p/645695#M8552</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I haven't been able to go further than swing, but I never really needed to - you can write and read values to/from the UI which is all I really need for my scripts. I doubt it's possible anyway. I tried hijacking some CE windows a while ago but the random SWT window naming that didn't even stay consistent within a program session wasn't exactly helping.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 11 Oct 2016 14:12:49 GMT</pubDate>
    <dc:creator>LR</dc:creator>
    <dc:date>2016-10-11T14:12:49Z</dc:date>
    <item>
      <title>Is it possible to develop a window like Dashboard in CityEngine</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/is-it-possible-to-develop-a-window-like-dashboard/m-p/645694#M8551</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello guys,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&lt;STRONG&gt; I try to run a simulation cooperating with CGA and Python Script, I need a window which is dialog like Dashboard to input parameter before starting and visualize results (by giving values or figure) in it.&lt;/STRONG&gt; One way I found is that Py script in CE can use swing library to develop graphic user interface but it seems to be outside CE I afraid it will be problem later with developing. Another way I wonder is it possible to develop a window inside CE via Python (or SDK)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Actually I major in urban planning, not familiar with programming so i just ask for some professional advice which way is better? it is my main question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;two small "question":&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; 1. we can get object value as HELP said. so for one base we can get streetWidth value around the base, is it possible to give the elevation around it?&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; 2. Web Scene Viewer is quite good for design display but it can only change layer.&amp;nbsp;&lt;EM&gt;is it possible to generate user mode where users can adjust attribute we defined and see results dynamically, but users don't need to see CGA editor and some more??&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;THANKS!&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;CHEN&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Oct 2016 08:34:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/is-it-possible-to-develop-a-window-like-dashboard/m-p/645694#M8551</guid>
      <dc:creator>HangyuChen</dc:creator>
      <dc:date>2016-10-11T08:34:39Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to develop a window like Dashboard in CityEngine</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/is-it-possible-to-develop-a-window-like-dashboard/m-p/645695#M8552</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I haven't been able to go further than swing, but I never really needed to - you can write and read values to/from the UI which is all I really need for my scripts. I doubt it's possible anyway. I tried hijacking some CE windows a while ago but the random SWT window naming that didn't even stay consistent within a program session wasn't exactly helping.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Oct 2016 14:12:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/is-it-possible-to-develop-a-window-like-dashboard/m-p/645695#M8552</guid>
      <dc:creator>LR</dc:creator>
      <dc:date>2016-10-11T14:12:49Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to develop a window like Dashboard in CityEngine</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/is-it-possible-to-develop-a-window-like-dashboard/m-p/645696#M8553</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi LR,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Thanks for reply... &lt;STRONG&gt;So do you know any method to develop that "window" in CE?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And one more question, &lt;STRONG&gt;how to use the tirm operation, trim()&lt;/STRONG&gt; ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;CHEN&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Oct 2016 06:03:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/is-it-possible-to-develop-a-window-like-dashboard/m-p/645696#M8553</guid>
      <dc:creator>HangyuChen</dc:creator>
      <dc:date>2016-10-17T06:03:51Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to develop a window like Dashboard in CityEngine</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/is-it-possible-to-develop-a-window-like-dashboard/m-p/645697#M8554</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can open other applications using python and pass parameters to them. &amp;nbsp;For example, this opens notepad.exe:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;import subprocess
subprocess.Popen('start notepad.exe', shell=True)&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;This opens notepad.exe with another filename as an argument:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;subprocess.Popen('start notepad.exe "C:\Users\&amp;lt;username&amp;gt;\Desktop\myParameters.py"', shell=True)‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No, you cannot open another window within CityEngine similar to the Dashboard, but you can open other applications outside of CityEngine using the code above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the future, please start new GeoNet posts for new topics. &amp;nbsp;Trim planes are set on operations like comp. &amp;nbsp;This helps trim geometry like ledges that go around buildings so that they meet up correctly at the corners. &amp;nbsp;Please see the visual diagrams in the examples section called "Trim planes" on the comp help page:&amp;nbsp;&lt;A class="link-titled" href="http://cehelp.esri.com/help/topic/com.procedural.cityengine.help/html/cgareference/op_comp.html" title="http://cehelp.esri.com/help/topic/com.procedural.cityengine.help/html/cgareference/op_comp.html" rel="nofollow noopener noreferrer" target="_blank"&gt;Component Split Operation&lt;/A&gt;&amp;nbsp;. &amp;nbsp;To enable or disable trim planes, you can set the vertical or horizontal trim planes to true or false: &amp;nbsp;&lt;A class="link-titled" href="http://cehelp.esri.com/help/topic/com.procedural.cityengine.help/html/cgareference/attr_trim.html" title="http://cehelp.esri.com/help/topic/com.procedural.cityengine.help/html/cgareference/attr_trim.html" rel="nofollow noopener noreferrer" target="_blank"&gt;split Shape Attribute&lt;/A&gt;&amp;nbsp;. &amp;nbsp;The trim operation will then apply the cut along the trim plane to the current geometry.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 03:24:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/is-it-possible-to-develop-a-window-like-dashboard/m-p/645697#M8554</guid>
      <dc:creator>CherylLau</dc:creator>
      <dc:date>2021-12-12T03:24:39Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to develop a window like Dashboard in CityEngine</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/is-it-possible-to-develop-a-window-like-dashboard/m-p/645698#M8555</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here's a small example. It spawns a window with a text field and a button, when you press the button, the text field content is printed in the CE Python console.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/246656_ui.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;from&lt;/SPAN&gt; scripting &lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;from&lt;/SPAN&gt; javax&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;swing &lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;from&lt;/SPAN&gt; java&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;awt &lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt;

&lt;SPAN class="keyword token"&gt;def&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;spawnUI&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
frame &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; JFrame&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"Hell World!"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
 frame&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;setSize&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;300&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;300&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
 frame&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;locationRelativeTo&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;None
 frame&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;setDefaultCloseOperation&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;WindowConstants&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;DISPOSE_ON_CLOSE&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
 
 pnl &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; JPanel&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;GridLayout&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;2&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;5&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;5&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
 frame&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;add&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;pnl&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; 
 
 &lt;SPAN class="keyword token"&gt;global&lt;/SPAN&gt; txt_input
 txt_input &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; JTextField&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;''&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;15&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
 pnl&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;add&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;txt_input&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

 btn_run &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; JButton&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'Print!'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;actionPerformed&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;runAction&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
 pnl&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;add&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;btn_run&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
 
 frame&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;pack&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
 frame&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;setVisible&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token boolean"&gt;True&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
 
&lt;SPAN class="keyword token"&gt;def&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;runAction&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;event&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
 &lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;txt_input&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;text&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
 
&lt;SPAN class="comment token"&gt;# get a CityEngine instance&lt;/SPAN&gt;
ce &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; CE&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

&lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; __name__ &lt;SPAN class="operator token"&gt;==&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'__main__'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
 spawnUI&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 03:24:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/is-it-possible-to-develop-a-window-like-dashboard/m-p/645698#M8555</guid>
      <dc:creator>LR</dc:creator>
      <dc:date>2021-12-12T03:24:41Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to develop a window like Dashboard in CityEngine</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/is-it-possible-to-develop-a-window-like-dashboard/m-p/645699#M8556</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Understood.&lt;/P&gt;&lt;P&gt;Thank you! Lau&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Oct 2016 14:32:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/is-it-possible-to-develop-a-window-like-dashboard/m-p/645699#M8556</guid>
      <dc:creator>HangyuChen</dc:creator>
      <dc:date>2016-10-17T14:32:42Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to develop a window like Dashboard in CityEngine</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/is-it-possible-to-develop-a-window-like-dashboard/m-p/645700#M8557</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks! LR&lt;/P&gt;&lt;P&gt;I might go by this way&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Oct 2016 14:34:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/is-it-possible-to-develop-a-window-like-dashboard/m-p/645700#M8557</guid>
      <dc:creator>HangyuChen</dc:creator>
      <dc:date>2016-10-17T14:34:17Z</dc:date>
    </item>
  </channel>
</rss>

