<?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 CGA Code - No color option in ArcGIS CityEngine Questions</title>
    <link>https://community.esri.com/t5/arcgis-cityengine-questions/cga-code-no-color-option/m-p/688994#M9062</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I´m writing a rule to colorize a facade that goes as follows. One of the Options I want is to not colorize, but I don´t know what I should write in that case (highlighted in red). Can you help me?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks you,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marta&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@Group ("Colors")&lt;/P&gt;&lt;P&gt;attr green = "#007d34"&lt;BR /&gt;attr orange = "#f59e00"&lt;BR /&gt;attr red = "#cd071e"&lt;BR /&gt;attr grey = "#c4c4c4"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@Group ("EnergyState")&lt;/P&gt;&lt;P&gt;attr UValue_Is_Facade = 0 &lt;SPAN style="color: #7ed529;"&gt;// Current u-value&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;attr UValue_Reg_Facade = 0 &lt;SPAN style="color: #7ed529;"&gt;// U-value corresponding with the regulation&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;attr UValue_Rec_Facade = 0 &lt;SPAN style="color: #7ed529;"&gt;//Recommended u-value&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@range(0,1,2,3)&lt;BR /&gt;attr UValueColorizer_Facade = 0 &lt;SPAN style="color: #7ed529;"&gt;// 0 = no color, 1 = UValue_Is_Facade, 2 = UValue_Reg_Facade, 3 = UValue_Rec_Facade&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ColorizerUValueSwitch_Facade --&amp;gt; &lt;BR /&gt; case UValueColorizer_Facade == 0 : Colorizer_Off_Facade&lt;BR /&gt; case UValueColorizer_Facade == 1 : Colorizer_UValue_Is_Facade&lt;BR /&gt; case UValueColorizer_Facade == 2 : Colorizer_UValue_Reg_Facade&lt;BR /&gt; else: Colorizer_UValue_Rec_Facade&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #e23d39;"&gt;Colorizer_Off_Facade --&amp;gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN style="color: #e23d39;"&gt;&lt;STRONG&gt; color ()&lt;/STRONG&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Colorizer_UValue_Is_Facade --&amp;gt;&lt;BR /&gt; case UValue_Is_Facade &amp;lt; 1 &amp;amp;&amp;amp; UValue_Is &amp;gt; 0 : color (green)&lt;BR /&gt; case UValue_Is_Facade &amp;lt; 2 &amp;amp;&amp;amp; UValue_Is &amp;gt; 1 : color (orange)&lt;BR /&gt; case UValue_Is_Facade &amp;lt; 3 &amp;amp;&amp;amp; UValue_Is &amp;gt; 2 : color (red)&lt;BR /&gt; else: color (grey)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Colorizer_UValue_Reg_Facade --&amp;gt;&lt;BR /&gt; case UValue_Reg_Facade &amp;lt; 1 &amp;amp;&amp;amp; UValue_Is &amp;gt; 0 : color (green)&lt;BR /&gt; case UValue_Reg_Facade &amp;lt; 2 &amp;amp;&amp;amp; UValue_Is &amp;gt; 1 : color (orange)&lt;BR /&gt; case UValue_Reg_Facade &amp;lt; 3 &amp;amp;&amp;amp; UValue_Is &amp;gt; 2 : color (red)&lt;BR /&gt; else: color (grey)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Colorizer_UValue_Rec_Facade --&amp;gt;&lt;BR /&gt; case UValue_Rec_Facade &amp;lt; 1 &amp;amp;&amp;amp; UValue_Is &amp;gt; 0 : color (green)&lt;BR /&gt; case UValue_Rec_Facade &amp;lt; 2 &amp;amp;&amp;amp; UValue_Is &amp;gt; 1 : color (orange)&lt;BR /&gt; case UValue_Rec_Facade &amp;lt; 3 &amp;amp;&amp;amp; UValue_Is &amp;gt; 2 : color (red)&lt;BR /&gt; else: color (grey)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 May 2016 16:05:56 GMT</pubDate>
    <dc:creator>MartaBescansa1</dc:creator>
    <dc:date>2016-05-23T16:05:56Z</dc:date>
    <item>
      <title>CGA Code - No color option</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/cga-code-no-color-option/m-p/688994#M9062</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I´m writing a rule to colorize a facade that goes as follows. One of the Options I want is to not colorize, but I don´t know what I should write in that case (highlighted in red). Can you help me?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks you,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marta&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@Group ("Colors")&lt;/P&gt;&lt;P&gt;attr green = "#007d34"&lt;BR /&gt;attr orange = "#f59e00"&lt;BR /&gt;attr red = "#cd071e"&lt;BR /&gt;attr grey = "#c4c4c4"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@Group ("EnergyState")&lt;/P&gt;&lt;P&gt;attr UValue_Is_Facade = 0 &lt;SPAN style="color: #7ed529;"&gt;// Current u-value&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;attr UValue_Reg_Facade = 0 &lt;SPAN style="color: #7ed529;"&gt;// U-value corresponding with the regulation&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;attr UValue_Rec_Facade = 0 &lt;SPAN style="color: #7ed529;"&gt;//Recommended u-value&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@range(0,1,2,3)&lt;BR /&gt;attr UValueColorizer_Facade = 0 &lt;SPAN style="color: #7ed529;"&gt;// 0 = no color, 1 = UValue_Is_Facade, 2 = UValue_Reg_Facade, 3 = UValue_Rec_Facade&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ColorizerUValueSwitch_Facade --&amp;gt; &lt;BR /&gt; case UValueColorizer_Facade == 0 : Colorizer_Off_Facade&lt;BR /&gt; case UValueColorizer_Facade == 1 : Colorizer_UValue_Is_Facade&lt;BR /&gt; case UValueColorizer_Facade == 2 : Colorizer_UValue_Reg_Facade&lt;BR /&gt; else: Colorizer_UValue_Rec_Facade&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #e23d39;"&gt;Colorizer_Off_Facade --&amp;gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN style="color: #e23d39;"&gt;&lt;STRONG&gt; color ()&lt;/STRONG&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Colorizer_UValue_Is_Facade --&amp;gt;&lt;BR /&gt; case UValue_Is_Facade &amp;lt; 1 &amp;amp;&amp;amp; UValue_Is &amp;gt; 0 : color (green)&lt;BR /&gt; case UValue_Is_Facade &amp;lt; 2 &amp;amp;&amp;amp; UValue_Is &amp;gt; 1 : color (orange)&lt;BR /&gt; case UValue_Is_Facade &amp;lt; 3 &amp;amp;&amp;amp; UValue_Is &amp;gt; 2 : color (red)&lt;BR /&gt; else: color (grey)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Colorizer_UValue_Reg_Facade --&amp;gt;&lt;BR /&gt; case UValue_Reg_Facade &amp;lt; 1 &amp;amp;&amp;amp; UValue_Is &amp;gt; 0 : color (green)&lt;BR /&gt; case UValue_Reg_Facade &amp;lt; 2 &amp;amp;&amp;amp; UValue_Is &amp;gt; 1 : color (orange)&lt;BR /&gt; case UValue_Reg_Facade &amp;lt; 3 &amp;amp;&amp;amp; UValue_Is &amp;gt; 2 : color (red)&lt;BR /&gt; else: color (grey)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Colorizer_UValue_Rec_Facade --&amp;gt;&lt;BR /&gt; case UValue_Rec_Facade &amp;lt; 1 &amp;amp;&amp;amp; UValue_Is &amp;gt; 0 : color (green)&lt;BR /&gt; case UValue_Rec_Facade &amp;lt; 2 &amp;amp;&amp;amp; UValue_Is &amp;gt; 1 : color (orange)&lt;BR /&gt; case UValue_Rec_Facade &amp;lt; 3 &amp;amp;&amp;amp; UValue_Is &amp;gt; 2 : color (red)&lt;BR /&gt; else: color (grey)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 May 2016 16:05:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/cga-code-no-color-option/m-p/688994#M9062</guid>
      <dc:creator>MartaBescansa1</dc:creator>
      <dc:date>2016-05-23T16:05:56Z</dc:date>
    </item>
    <item>
      <title>Re: CGA Code - No color option</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/cga-code-no-color-option/m-p/688995#M9063</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you have a texture on the facade you want to preserve in absence of a color...you could try this...&lt;/P&gt;&lt;P&gt;Colorizer_Off_Facade--&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NIL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but if you are only coloring your facades (no textures) ...then you could just use a white color&lt;/P&gt;&lt;P&gt;Colorizer_Off_Facade--&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; color("#fff")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps. &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 May 2016 16:42:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/cga-code-no-color-option/m-p/688995#M9063</guid>
      <dc:creator>MicahTaylor</dc:creator>
      <dc:date>2016-05-23T16:42:03Z</dc:date>
    </item>
  </channel>
</rss>

