<?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: Floor area based rules. in ArcGIS CityEngine Questions</title>
    <link>https://community.esri.com/t5/arcgis-cityengine-questions/floor-area-based-rules/m-p/77730#M1091</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm trying to remember the lot dimensions, and later use it to translate a subset.&amp;nbsp; I'm not sure why, but it doesn't work for me though.&amp;nbsp; I'm getting an error: &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;Undefined rule:set&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm using CityEngine 2010, maybe this wasn't a feature of this build?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
attr LotScopeX = 0 

Lot --&amp;gt;
 set( LotScopeX, scope.sx )
 Footprint

. // other script

t(lotScopeX,0,0)

&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Dec 2021 22:59:49 GMT</pubDate>
    <dc:creator>DavidOConnor</dc:creator>
    <dc:date>2021-12-10T22:59:49Z</dc:date>
    <item>
      <title>Floor area based rules.</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/floor-area-based-rules/m-p/77726#M1087</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm trying to create a rule that depending on the floor area of a shape a cube is built or 'grafted' onto that original shape.&amp;nbsp; For example for every 100sq.m of floor area i get 20sq.m of cube attached to the shape.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is this possible? and where do i begin?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks in advance!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;jesse&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2012 01:23:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/floor-area-based-rules/m-p/77726#M1087</guid>
      <dc:creator>JesseGould</dc:creator>
      <dc:date>2012-04-04T01:23:24Z</dc:date>
    </item>
    <item>
      <title>Re: Floor area based rules.</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/floor-area-based-rules/m-p/77727#M1088</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;yes, things like this are possible, though I need some more input.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;can you post a picture of what you'd like to have as a result ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;let me know. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2012 08:42:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/floor-area-based-rules/m-p/77727#M1088</guid>
      <dc:creator>MatthiasBuehler1</dc:creator>
      <dc:date>2012-04-04T08:42:17Z</dc:date>
    </item>
    <item>
      <title>Re: Floor area based rules.</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/floor-area-based-rules/m-p/77728#M1089</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Its now become more of a conditional statement rule. I've uploaded the rule file and the map that gives us a few errors. we tried to write in a condition that states when the lot is placed on a red part of the map a "window" is created and when it is placed on the black it is a "wall" &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;any help would be great!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Jesse&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2012 07:18:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/floor-area-based-rules/m-p/77728#M1089</guid>
      <dc:creator>JesseGould</dc:creator>
      <dc:date>2012-04-05T07:18:42Z</dc:date>
    </item>
    <item>
      <title>Re: Floor area based rules.</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/floor-area-based-rules/m-p/77729#M1090</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;it is very important to understand that since CE works in a tree structure, you have to pass information down each shape if you want to reuse it further down the rules.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;e.g. if you use a comp(f) to split off a facade, any prior knowledge of the other shapes is gone. to pass the Lot area down, you do this best by using a 'Generic Attribute'.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;--&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
attr Footprint_Area = 0

Lot --&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; set (Footprint_Area, geometry.area)
&amp;nbsp;&amp;nbsp;&amp;nbsp; extrude(world.y, 20)
&amp;nbsp;&amp;nbsp;&amp;nbsp; comp(f) {all : Printer}
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
Printer --&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; print (Footprint_Area)
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;an other input is to split directly after the extrude : this will again create closed volumes after the split, which you then can comp(f) in a second step.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 22:59:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/floor-area-based-rules/m-p/77729#M1090</guid>
      <dc:creator>MatthiasBuehler1</dc:creator>
      <dc:date>2021-12-10T22:59:47Z</dc:date>
    </item>
    <item>
      <title>Re: Floor area based rules.</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/floor-area-based-rules/m-p/77730#M1091</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm trying to remember the lot dimensions, and later use it to translate a subset.&amp;nbsp; I'm not sure why, but it doesn't work for me though.&amp;nbsp; I'm getting an error: &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;Undefined rule:set&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm using CityEngine 2010, maybe this wasn't a feature of this build?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
attr LotScopeX = 0 

Lot --&amp;gt;
 set( LotScopeX, scope.sx )
 Footprint

. // other script

t(lotScopeX,0,0)

&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 22:59:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/floor-area-based-rules/m-p/77730#M1091</guid>
      <dc:creator>DavidOConnor</dc:creator>
      <dc:date>2021-12-10T22:59:49Z</dc:date>
    </item>
    <item>
      <title>Re: Floor area based rules.</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/floor-area-based-rules/m-p/77731#M1092</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;hey ..&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;important input. set() existed already before 2011, but it did not work on attributes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;the 'generic attributes' as mentioned, are only working that way in CE 2011 and newer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In your case, you'll have to pass the values as Rule parameters like this :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ You may see that this may get a little ugly if you have lots and lots of parameters ]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;Lot --&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; FootprintValues(scope.sx, scope.sy, scope.sz)

FootprintValues(xDim, yDim, zDim) --&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; print (xDim)
&amp;nbsp;&amp;nbsp;&amp;nbsp; print (yDim)
&amp;nbsp;&amp;nbsp;&amp;nbsp; print (zDim)&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;note that 'xDim' is just a name. you can name this freely !&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 22:59:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/floor-area-based-rules/m-p/77731#M1092</guid>
      <dc:creator>MatthiasBuehler1</dc:creator>
      <dc:date>2021-12-10T22:59:52Z</dc:date>
    </item>
  </channel>
</rss>

