<?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: Conditional rule based on object attributes in ArcGIS CityEngine Questions</title>
    <link>https://community.esri.com/t5/arcgis-cityengine-questions/conditional-rule-based-on-object-attributes/m-p/7942#M96</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: matthiasbuehler&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Maybe because F_AREA is defined as a string ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;attr F_AREA = ""&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Oct 2012 15:24:47 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2012-10-17T15:24:47Z</dc:date>
    <item>
      <title>Conditional rule based on object attributes</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/conditional-rule-based-on-object-attributes/m-p/7941#M95</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: mc2g&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi guys,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am trying to write a simple conditional rule to generate some built form in CGA (based on the generic modern building rule from the example)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Basically I have a Lot parcel file (.shp) with area and Storey data. I want to use these object attributes to control the Front setback mode.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Say any parcel above or equal to 8 storeys and with a lot area F_Area larger than 1000sqm will have a podium tower type setback, otherwise no setback is required.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;attr Front_Setback_Mode =
 case Nbr_of_Floors &amp;gt;= 8 &amp;amp;&amp;amp; F_AREA &amp;gt; minArea : "Podium Tower Setback"
&amp;nbsp; else : "None"&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Based on the rule, the selected parcel in the attached screen capture is 8 storeys but have a lot area smaller than 1000, hence should have no setback. It seems like only the Nbr of floors part of the conditional rule passed through. Can someone please give me some pointers on what I did wrong?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;M.C.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 20:19:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/conditional-rule-based-on-object-attributes/m-p/7941#M95</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-12-10T20:19:35Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional rule based on object attributes</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/conditional-rule-based-on-object-attributes/m-p/7942#M96</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: matthiasbuehler&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Maybe because F_AREA is defined as a string ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;attr F_AREA = ""&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Oct 2012 15:24:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/conditional-rule-based-on-object-attributes/m-p/7942#M96</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2012-10-17T15:24:47Z</dc:date>
    </item>
  </channel>
</rss>

