<?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: I find this syntax odd, why is this so? in ArcGIS CityEngine Questions</title>
    <link>https://community.esri.com/t5/arcgis-cityengine-questions/i-find-this-syntax-odd-why-is-this-so/m-p/590347#M7989</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;it was designed to behave this way. &lt;span class="lia-unicode-emoji" title=":face_with_open_mouth:"&gt;😮&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;there's advantages, there's disadvantages, but there went a lot of thought in this design.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 May 2012 10:32:01 GMT</pubDate>
    <dc:creator>MatthiasBuehler1</dc:creator>
    <dc:date>2012-05-15T10:32:01Z</dc:date>
    <item>
      <title>I find this syntax odd, why is this so?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/i-find-this-syntax-odd-why-is-this-so/m-p/590346#M7988</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I think the reason that sometimes it is hard to adapt to the cga script is due to oddities like this that don't appear to make sense to those coming from other languages.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Why is it that this type of thing is as it is?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does not work&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;case area &amp;gt; 1200:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; innerRect 
&amp;nbsp; alignScopeToGeometry(yUp,0,longest)

&amp;nbsp; 80% :
&amp;nbsp;&amp;nbsp; offset(-3)
&amp;nbsp;&amp;nbsp; Building
&amp;nbsp; else: 
&amp;nbsp;&amp;nbsp; Building
&amp;nbsp; 
 else:
&amp;nbsp; Ground
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Works&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
case area &amp;gt; 1200:
&amp;nbsp; 
&amp;nbsp; 80% :
&amp;nbsp;&amp;nbsp; innerRect 
&amp;nbsp;&amp;nbsp; alignScopeToGeometry(yUp,0,longest)
&amp;nbsp;&amp;nbsp; offset(-3)
&amp;nbsp;&amp;nbsp; Building
&amp;nbsp; else: 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; innerRect 
&amp;nbsp;&amp;nbsp; alignScopeToGeometry(yUp,0,longest)
&amp;nbsp;&amp;nbsp; Building
&amp;nbsp; 
 else:
&amp;nbsp; Ground
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2012 17:22:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/i-find-this-syntax-odd-why-is-this-so/m-p/590346#M7988</guid>
      <dc:creator>RobertHexter</dc:creator>
      <dc:date>2012-05-14T17:22:33Z</dc:date>
    </item>
    <item>
      <title>Re: I find this syntax odd, why is this so?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/i-find-this-syntax-odd-why-is-this-so/m-p/590347#M7989</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;it was designed to behave this way. &lt;span class="lia-unicode-emoji" title=":face_with_open_mouth:"&gt;😮&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;there's advantages, there's disadvantages, but there went a lot of thought in this design.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2012 10:32:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/i-find-this-syntax-odd-why-is-this-so/m-p/590347#M7989</guid>
      <dc:creator>MatthiasBuehler1</dc:creator>
      <dc:date>2012-05-15T10:32:01Z</dc:date>
    </item>
    <item>
      <title>Re: I find this syntax odd, why is this so?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/i-find-this-syntax-odd-why-is-this-so/m-p/590348#M7990</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;I've had an interesting discussion with one of the Developers and he gave me a little more insight.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;so here's an additional note :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;if you look in the manual under :&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG&gt;Manual &amp;gt; Rule Based Modeling &amp;gt; Writing Rules&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,you see that CGA distinguishes between '4 Rule Types'. Now the basic 'structure' of those rules must have correct syntax, otherwise they won't parse. depending on what you write in the rule body, different 'levels' ( term loosely translated ) are defined which each have to correspond to 1 of those 4 types.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Your specific example can actually be created by using ' push pop' which adds such a 'level' in which you have again a correct rule type.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Let me know if there's more questions .. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
MyRule--&amp;gt;
 case geometry.area &amp;gt; 1200:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; innerRect 
&amp;nbsp; alignScopeToGeometry(yUp,0,longest)
&amp;nbsp; [
&amp;nbsp;&amp;nbsp; 80% :
&amp;nbsp;&amp;nbsp;&amp;nbsp; offset(-3)
&amp;nbsp;&amp;nbsp;&amp;nbsp; Building
&amp;nbsp;&amp;nbsp; else: 
&amp;nbsp;&amp;nbsp;&amp;nbsp; Building
&amp;nbsp; ]
 else:
&amp;nbsp; Ground
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 01:21:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/i-find-this-syntax-odd-why-is-this-so/m-p/590348#M7990</guid>
      <dc:creator>MatthiasBuehler1</dc:creator>
      <dc:date>2021-12-12T01:21:17Z</dc:date>
    </item>
    <item>
      <title>Re: I find this syntax odd, why is this so?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/i-find-this-syntax-odd-why-is-this-so/m-p/590349#M7991</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Interesting thanks for the additional information and follow up!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jun 2012 21:41:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/i-find-this-syntax-odd-why-is-this-so/m-p/590349#M7991</guid>
      <dc:creator>RobertHexter</dc:creator>
      <dc:date>2012-06-18T21:41:59Z</dc:date>
    </item>
  </channel>
</rss>

