<?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: SplitArea Function in ArcGIS CityEngine Questions</title>
    <link>https://community.esri.com/t5/arcgis-cityengine-questions/splitarea-function/m-p/92078#M1269</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The splitArea() function is only available starting with 2016.0, but I would recommend upgrading to the latest, which is currently 2016.1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With the splitArea() function, you can split a shape by percentage area.&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://cehelp.esri.com/help/topic/com.procedural.cityengine.help/html/cgareference/op_splitArea.html" title="http://cehelp.esri.com/help/topic/com.procedural.cityengine.help/html/cgareference/op_splitArea.html"&gt;splitArea Operation&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, this split divides the area of the current geometry into 33% green space, 27% open space, and 40% building space:&lt;/P&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;splitArea(x) { '0.33: GreenSpace | '0.27: OpenSpace | ~1: BuildingSpace }&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;You can also split the current geometry according to an absolute area. &amp;nbsp;For example, this split divides the area of the current geometry into one piece that has exactly 3000 sqm and one piece that has the remaining area.&lt;/P&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;splitArea(x) { 3000: BuildingSpace | ~1: OtherSpace }&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;Note that splitArea (and split) only splits the geometry in one direction. &amp;nbsp;If you want to split in two directions (e.g. x and z), you'll have to do nested splits (as you figured out).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The reason why the percentages in the code you wrote don't work the way you expected is because the percentage syntax has a different meaning. &amp;nbsp;It means that the rule will choose one of the cases with some probability, and that probability is defined by the percentage. &amp;nbsp;So, if the rule is executed 100 times, it will choose to create ExtrudeBuilding&amp;nbsp;approximately 35 times, and it will choose to create OpenSpace approximately 27 times.&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://cehelp.esri.com/help/topic/com.procedural.cityengine.help/html/manual/cga/writing_rules/cga_wr_stochastic_rule.html?resultof=%22%70%65%72%63%65%6e%74%61%67%65%22%20%22%70%65%72%63%65%6e%74%61%67%22%20" title="http://cehelp.esri.com/help/topic/com.procedural.cityengine.help/html/manual/cga/writing_rules/cga_wr_stochastic_rule.html?resultof=%22%70%65%72%63%65%6e%74%61%67%65%22%20%22%70%65%72%63%65%6e%74%61%67%22%20"&gt;Stochastic Rule&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 May 2017 15:58:49 GMT</pubDate>
    <dc:creator>CherylLau</dc:creator>
    <dc:date>2017-05-25T15:58:49Z</dc:date>
    <item>
      <title>SplitArea Function</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/splitarea-function/m-p/92074#M1265</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I am trying to break down a parcel using splitArea(x/z) function some how it says&amp;nbsp;unexpected token: splitArea.&lt;/P&gt;&lt;P&gt;I am trying to build a query where I can divide parcel 60-40%&amp;nbsp;and&amp;nbsp;in which 40% of the plot be subdivided into 3000sqm area and extrude building over it. Also I want to manage the orientation based on some angle (0-360 deg)&lt;/P&gt;&lt;P&gt;Can somebody help me with this. or suggest be best possible way to do this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;Ab&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 May 2017 02:11:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/splitarea-function/m-p/92074#M1265</guid>
      <dc:creator>AbhishekSobbana</dc:creator>
      <dc:date>2017-05-23T02:11:32Z</dc:date>
    </item>
    <item>
      <title>Re: SplitArea Function</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/splitarea-function/m-p/92075#M1266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Abhishek,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Can you tell us your CE Version? Are you included all expected parameters?&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 May 2017 22:41:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/splitarea-function/m-p/92075#M1266</guid>
      <dc:creator>DavidWasserman</dc:creator>
      <dc:date>2017-05-23T22:41:47Z</dc:date>
    </item>
    <item>
      <title>Re: SplitArea Function</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/splitarea-function/m-p/92076#M1267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi David,&lt;/P&gt;&lt;P&gt;I am having City Engine V 2015.2 advanced License.&amp;nbsp;I am new to CityEngine so I am following tutorial, I don't know what parameters are needed for the function to work. Please let me know if my version covers everything that is needed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ab&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 May 2017 04:17:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/splitarea-function/m-p/92076#M1267</guid>
      <dc:creator>AbhishekSobbana</dc:creator>
      <dc:date>2017-05-24T04:17:56Z</dc:date>
    </item>
    <item>
      <title>Re: SplitArea Function</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/splitarea-function/m-p/92077#M1268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all, While searching in the discussion forum, I found part of my answer of dividing the plot in direction to achieve the floor area for building which is 3000 sqm.&lt;/P&gt;&lt;P&gt;split(x) {50 : split(z){60:Extrude_Building}*}*}&lt;/P&gt;&lt;P&gt;also the rotation scope can be managed via,&lt;/P&gt;&lt;P&gt;rotateScope(0,Rotation,0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but I am unable to randomize the split function, lets say my plot has to be divided in 33% of green cover and 27% of Openspace (which will also include setback from street and distance between&amp;nbsp;the buildings) and rest 40% should be cover by buildings with 3000sqm foot print, and all this should also gives options so that when I regenerate the model I can choose which is better.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried using the percentage but somehow it is not working&lt;/P&gt;&lt;P&gt;Lot --&amp;gt;&lt;/P&gt;&lt;P&gt;35% : split(x) {50 : split(z){60:Extrude_Building}*}*&lt;BR /&gt;27% : OpenSpace&lt;BR /&gt;33% :&amp;nbsp;Greencover&lt;BR /&gt;else : Extrude_Building&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above code provides just the one of the options but not all together.&lt;/P&gt;&lt;P&gt;Can anyone suggest how can I achieve this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Ab&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 May 2017 08:42:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/splitarea-function/m-p/92077#M1268</guid>
      <dc:creator>AbhishekSobbana</dc:creator>
      <dc:date>2017-05-25T08:42:32Z</dc:date>
    </item>
    <item>
      <title>Re: SplitArea Function</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/splitarea-function/m-p/92078#M1269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The splitArea() function is only available starting with 2016.0, but I would recommend upgrading to the latest, which is currently 2016.1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With the splitArea() function, you can split a shape by percentage area.&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://cehelp.esri.com/help/topic/com.procedural.cityengine.help/html/cgareference/op_splitArea.html" title="http://cehelp.esri.com/help/topic/com.procedural.cityengine.help/html/cgareference/op_splitArea.html"&gt;splitArea Operation&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, this split divides the area of the current geometry into 33% green space, 27% open space, and 40% building space:&lt;/P&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;splitArea(x) { '0.33: GreenSpace | '0.27: OpenSpace | ~1: BuildingSpace }&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;You can also split the current geometry according to an absolute area. &amp;nbsp;For example, this split divides the area of the current geometry into one piece that has exactly 3000 sqm and one piece that has the remaining area.&lt;/P&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;splitArea(x) { 3000: BuildingSpace | ~1: OtherSpace }&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;Note that splitArea (and split) only splits the geometry in one direction. &amp;nbsp;If you want to split in two directions (e.g. x and z), you'll have to do nested splits (as you figured out).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The reason why the percentages in the code you wrote don't work the way you expected is because the percentage syntax has a different meaning. &amp;nbsp;It means that the rule will choose one of the cases with some probability, and that probability is defined by the percentage. &amp;nbsp;So, if the rule is executed 100 times, it will choose to create ExtrudeBuilding&amp;nbsp;approximately 35 times, and it will choose to create OpenSpace approximately 27 times.&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://cehelp.esri.com/help/topic/com.procedural.cityengine.help/html/manual/cga/writing_rules/cga_wr_stochastic_rule.html?resultof=%22%70%65%72%63%65%6e%74%61%67%65%22%20%22%70%65%72%63%65%6e%74%61%67%22%20" title="http://cehelp.esri.com/help/topic/com.procedural.cityengine.help/html/manual/cga/writing_rules/cga_wr_stochastic_rule.html?resultof=%22%70%65%72%63%65%6e%74%61%67%65%22%20%22%70%65%72%63%65%6e%74%61%67%22%20"&gt;Stochastic Rule&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 May 2017 15:58:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/splitarea-function/m-p/92078#M1269</guid>
      <dc:creator>CherylLau</dc:creator>
      <dc:date>2017-05-25T15:58:49Z</dc:date>
    </item>
    <item>
      <title>Re: SplitArea Function</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/splitarea-function/m-p/92079#M1270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Abhishek,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I second Cheryl on the version update.&amp;nbsp;&lt;A href="https://community.esri.com/people/CLau-esristaff"&gt;CLau-esristaff&lt;/A&gt;&amp;nbsp;is that in the docs somewhere? I can't find it under the splitArea function.&amp;nbsp;&lt;BR /&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 May 2017 21:17:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/splitarea-function/m-p/92079#M1270</guid>
      <dc:creator>deleted-user-Q-Ku9J1BlYDK</dc:creator>
      <dc:date>2017-05-25T21:17:16Z</dc:date>
    </item>
    <item>
      <title>Re: SplitArea Function</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/splitarea-function/m-p/92080#M1271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Cheryl,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your kind reply. Since I have CE 2015.2 can I upgrade my version with my current license?&lt;/P&gt;&lt;P&gt;Thank you for letting me know about the misinterpretation of stochastic rule, I was using that thinking of randomizing the placement of building, green space and open space.&lt;/P&gt;&lt;P&gt;When I use split(x) {'.33: OpenSpace | '.27: color("#FFC500") | '.4 : split(x) {50 : split(z){60:Building}*}*}&lt;/P&gt;&lt;P&gt;but this divides in one direction which gives me one option.&lt;/P&gt;&lt;P&gt;If we see block division parameter where we can see offset division where we can create courtyard division with openspace in the middle and buildings around it, similarly recursive subdivision we can give randomization of parcels.&lt;/P&gt;&lt;P&gt;My intention is creating the similar code where I can give this randomization or courtyard visualization for a parcel which I have in 5ac of plot. I think this function can be made without using block division parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this is understandable, Please let me know if there's a way where we can achieve this subdivision function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Ab.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 May 2017 05:21:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/splitarea-function/m-p/92080#M1271</guid>
      <dc:creator>AbhishekSobbana</dc:creator>
      <dc:date>2017-05-26T05:21:39Z</dc:date>
    </item>
    <item>
      <title>Re: SplitArea Function</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/splitarea-function/m-p/92081#M1272</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's in the changelog. &amp;nbsp;A link to it can be found at the bottom of the cga reference page.&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://cehelp.esri.com/help/topic/com.procedural.cityengine.help/html/cgareference/cga_changelog.html" title="http://cehelp.esri.com/help/topic/com.procedural.cityengine.help/html/cgareference/cga_changelog.html"&gt;CGA Changelog&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 May 2017 17:16:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/splitarea-function/m-p/92081#M1272</guid>
      <dc:creator>CherylLau</dc:creator>
      <dc:date>2017-05-29T17:16:36Z</dc:date>
    </item>
    <item>
      <title>Re: SplitArea Function</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/splitarea-function/m-p/92082#M1273</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;CityEngine 2015.2 licenses won't work for CityEngine 2016.1&lt;BR /&gt;Go to &lt;A class="link-titled" href="https://my.esri.com" title="https://my.esri.com"&gt;https://my.esri.com&lt;/A&gt; to check if you have a license for 2016.1&lt;/P&gt;&lt;P&gt;If not, please contact your ESRI sales representative.&lt;/P&gt;&lt;P&gt;You can also test this version in a free trial: &lt;A class="link-titled" href="http://www.esri.com/software/cityengine/free-trial" title="http://www.esri.com/software/cityengine/free-trial"&gt;Esri CityEngine | Try CityEngine Free&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 May 2017 17:29:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/splitarea-function/m-p/92082#M1273</guid>
      <dc:creator>ThomasFuchs</dc:creator>
      <dc:date>2017-05-29T17:29:53Z</dc:date>
    </item>
    <item>
      <title>Re: SplitArea Function</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/splitarea-function/m-p/92083#M1274</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't understand your question, but I will make a guess that you want to split in two directions in order to partition a lot so that there is a courtyard in the middle.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Splits can only be made in one direction at a time (also applies to splitArea). &amp;nbsp;To split a lot in two directions, you will have to perform two splits, one after another.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alternatively, you can use offset, setback, shapeL, shapeU, and shapeO to create L, U, and O shapes. &amp;nbsp;However, you cannot specify an exact area with these functions.&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://cehelp.esri.com/help/topic/com.procedural.cityengine.help/html/cgareference/op_offset.html" title="http://cehelp.esri.com/help/topic/com.procedural.cityengine.help/html/cgareference/op_offset.html"&gt;offset Operation&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://cehelp.esri.com/help/topic/com.procedural.cityengine.help/html/cgareference/op_setback.html" title="http://cehelp.esri.com/help/topic/com.procedural.cityengine.help/html/cgareference/op_setback.html"&gt;setback Operation&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://cehelp.esri.com/help/topic/com.procedural.cityengine.help/html/cgareference/op_shapeLUO.html" title="http://cehelp.esri.com/help/topic/com.procedural.cityengine.help/html/cgareference/op_shapeLUO.html"&gt;shapeL, shapeU, shapeO operations&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, you can apply recursion in cga to partition lots recursively. &amp;nbsp;For example, if you apply shapeO to a lot, you can get a courtyard area in the middle. &amp;nbsp;Then, you can apply the rule again to the courtyard, you can subdivide the courtyard into another shapeO (or whatever function you want), and you can keep subdividing resulting pieces until your desired&amp;nbsp;stopping criteria.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 May 2017 17:36:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/splitarea-function/m-p/92083#M1274</guid>
      <dc:creator>CherylLau</dc:creator>
      <dc:date>2017-05-29T17:36:58Z</dc:date>
    </item>
    <item>
      <title>Re: SplitArea Function</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/splitarea-function/m-p/92084#M1275</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry I confused you bit there,&lt;/P&gt;&lt;P&gt;I can not use splitArea since my version doesn't &amp;nbsp;support that function, So I am using split function in both direction to achieve 33% Greenspace (GS), 27% Openspace (OS) and 40% Building (Bu), like the code below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;split(x) {'.21: split(z) {'.21: OS | '.57: OS |~1: OS} &lt;BR /&gt; | '.57: split(z) {'.21: Bu | '.57: GS |~1: Bu}&lt;BR /&gt; | ~1: split(z) {'.21: Bu | '.57: Bu |~1: Bu}}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bu--&amp;gt;&amp;nbsp;shape : split(x) {50 : split(z){60:Footprint}*}*&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Courtyard" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/354414_Courtyard.JPG" style="width: 620px; height: 427px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you see this one option that generates from the above code.&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I am trying to do is randomize between greenspace, openspace and building. Which is like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Random" class="image-2 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/354415_Random.JPG" style="width: 620px; height: 407px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above I have achieved using the block parameter using recursive subdivision, but the issue in using this is we cant control the percentage we need for greenspace, openspace and building. One advantage I see is we&amp;nbsp;can control the building footprint area say 3000 sqm and seed function where it control randomness between the plots.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can this be achieved using split function and also using seed function where it control the randomness for plot by retaining the percentage breakup.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 May 2017 12:30:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/splitarea-function/m-p/92084#M1275</guid>
      <dc:creator>AbhishekSobbana</dc:creator>
      <dc:date>2017-05-30T12:30:11Z</dc:date>
    </item>
    <item>
      <title>Re: SplitArea Function</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/splitarea-function/m-p/92085#M1276</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Without splitArea() it is not really possible to divide a lot into a piece that is exactly 3000 sqm or end up with exactly 33% of the original area as green space. &amp;nbsp;However, you might be able to achieve approximate results. &amp;nbsp;Here are some ideas to explore:&lt;/P&gt;&lt;P&gt;* Recursion. &amp;nbsp;You can recursively split your parcel until your desired stopping criteria. &amp;nbsp;Maybe this criteria could involve the area or dimensions of the final lot? &amp;nbsp;Maybe the split chosen at each level depends on the area or dimensions of the current lot?&lt;/P&gt;&lt;P&gt;* geometry.area(). &amp;nbsp;This function will give you the area of the geometry. &amp;nbsp;&lt;A class="link-titled" href="http://cehelp.esri.com/help/topic/com.procedural.cityengine.help/html/cgareference/func_geometry.html#area" title="http://cehelp.esri.com/help/topic/com.procedural.cityengine.help/html/cgareference/func_geometry.html#area" rel="nofollow noopener noreferrer" target="_blank"&gt;geometry Functions&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;* scope.sx, scope.sz. &amp;nbsp;These will give you the size of the scope. &amp;nbsp;If you have rectangular lots, this might be helpful in calculating how large of a split to perform in order to get a certain area. &amp;nbsp;Of course, if you don't have rectangular lots, this calculation won't work. &amp;nbsp;&lt;A class="link-titled" href="http://cehelp.esri.com/help/topic/com.procedural.cityengine.help/html/cgareference/attr_scope.html" title="http://cehelp.esri.com/help/topic/com.procedural.cityengine.help/html/cgareference/attr_scope.html" rel="nofollow noopener noreferrer" target="_blank"&gt;scope Shape Attribute&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;* Stochastic rules. &amp;nbsp;If you divide a rectangular lot into equal sized cells (like a grid), then you can use a stochastic rule to make 33% of the lots green space and 27% of the lots open space and etc, for example. &amp;nbsp;&lt;A class="link-titled" href="http://cehelp.esri.com/help/topic/com.procedural.cityengine.help/html/manual/cga/writing_rules/cga_wr_stochastic_rule.html?resultof=%22%73%74%6f%63%68%61%73%74%69%63%22%20%22%73%74%6f%63%68%61%73%74%22%20" title="http://cehelp.esri.com/help/topic/com.procedural.cityengine.help/html/manual/cga/writing_rules/cga_wr_stochastic_rule.html?resultof=%22%73%74%6f%63%68%61%73%74%69%63%22%20%22%73%74%6f%63%68%61%73%74%22%20" rel="nofollow noopener noreferrer" target="_blank"&gt;Stochastic Rule&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;* Reports. &amp;nbsp;You can check how close you got to your goal by reporting the exact area.&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;report("Area.GreenSpace", geometry.area)
report("Area.OpenSpace", geometry.area)
report("Area.BuildingSpace", geometry.area)
&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;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;* Tutorial 11. &amp;nbsp;In this tutorial, there is an attribute called greenspacePercentage. &amp;nbsp;It doesn't divide the space exactly according to the percentage set in the attribute, but it is approximate. &amp;nbsp;This can be seen in the reported values Area.Greenspace and Area.BuildUp. &amp;nbsp;You can see how the approximation was made in the Lot rule where it chooses to be GreenSpace or a BuildingLot based on this greenspacePercentage. &amp;nbsp;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/cityengine/latest/tutorials/tutorial-11-reporting.htm" title="http://desktop.arcgis.com/en/cityengine/latest/tutorials/tutorial-11-reporting.htm" rel="nofollow noopener noreferrer" target="_blank"&gt;Tutorial 11: Reporting—CityEngine Tutorials | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 23:31:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/splitarea-function/m-p/92085#M1276</guid>
      <dc:creator>CherylLau</dc:creator>
      <dc:date>2021-12-10T23:31:54Z</dc:date>
    </item>
    <item>
      <title>Re: SplitArea Function</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/splitarea-function/m-p/92086#M1277</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Cheryl!&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 May 2017 02:18:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/splitarea-function/m-p/92086#M1277</guid>
      <dc:creator>deleted-user-Q-Ku9J1BlYDK</dc:creator>
      <dc:date>2017-05-31T02:18:53Z</dc:date>
    </item>
    <item>
      <title>Re: SplitArea Function</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/splitarea-function/m-p/92087#M1278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Cheryl,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry I was offline for few weeks so was not able to reply.&lt;/P&gt;&lt;P&gt;Thanks for the details inputs you have provided, it has helped me to achieve my target upto 80%.&lt;/P&gt;&lt;P&gt;Currently to achieve this issue I have first divided the plot into smaller pieces using&amp;nbsp;&lt;EM&gt;split(x) {50 : split(z){60:Footprint}*}*&lt;/EM&gt;&lt;SPAN style="background-color: #ffffff;"&gt; and then used&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;SPAN class="" style="color: #4d4d4d;"&gt;Lot&lt;/SPAN&gt;&lt;SPAN style="color: #4d4d4d; background-color: #fafafa;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #4d4d4d;"&gt;--&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="color: #4d4d4d; background-color: #fafafa;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: blue;"&gt;case&lt;/SPAN&gt;&lt;SPAN style="color: #4d4d4d; background-color: #fafafa;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #4d4d4d;"&gt;p&lt;/SPAN&gt;&lt;SPAN class="" style="color: #4d4d4d;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="" style="color: #4d4d4d;"&gt;greenspacePercentage&lt;/SPAN&gt;&lt;SPAN class="" style="color: #4d4d4d;"&gt;/&lt;/SPAN&gt;&lt;SPAN class="" style="color: #666666;"&gt;100&lt;/SPAN&gt;&lt;SPAN class="" style="color: #4d4d4d;"&gt;&lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #4d4d4d; background-color: #fafafa;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #4d4d4d;"&gt;report&lt;/SPAN&gt;&lt;SPAN class="" style="color: #4d4d4d;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="" style="color: #a31515;"&gt;"Area.Greenspace"&lt;/SPAN&gt;&lt;SPAN class="" style="color: #4d4d4d;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="" style="color: #4d4d4d;"&gt;geometry&lt;/SPAN&gt;&lt;SPAN class="" style="color: #4d4d4d;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="" style="color: #4d4d4d;"&gt;area&lt;/SPAN&gt;&lt;SPAN class="" style="color: #4d4d4d;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #4d4d4d; background-color: #fafafa;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #4d4d4d;"&gt;GreenSpace&lt;/SPAN&gt;&lt;SPAN style="color: #4d4d4d; background-color: #fafafa;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;SPAN class="" style="color: blue;"&gt;else&lt;/SPAN&gt;&lt;SPAN class="" style="color: #4d4d4d;"&gt;:&lt;/SPAN&gt;&lt;SPAN style="color: #4d4d4d; background-color: #fafafa;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #4d4d4d;"&gt;report&lt;/SPAN&gt;&lt;SPAN class="" style="color: #4d4d4d;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="" style="color: #a31515;"&gt;"Area.BuildUp"&lt;/SPAN&gt;&lt;SPAN class="" style="color: #4d4d4d;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="" style="color: #4d4d4d;"&gt;geometry&lt;/SPAN&gt;&lt;SPAN class="" style="color: #4d4d4d;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="" style="color: #4d4d4d;"&gt;area&lt;/SPAN&gt;&lt;SPAN class="" style="color: #4d4d4d;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #4d4d4d; background-color: #fafafa;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #4d4d4d;"&gt;BuildingLot&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;SPAN class="" style="color: #4d4d4d;"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;SPAN class="" style="color: #4d4d4d;"&gt;which more or less provide me the percentage breakup for the for greenspace, building and openspace.&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;SPAN class="" style="color: #4d4d4d;"&gt;Thanks for navigating me to the tutorial.&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;SPAN class="" style="color: #4d4d4d;"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;SPAN class="" style="color: #4d4d4d;"&gt;I am still working on making rule for various subdivision of plots like it happens in default &lt;A href="http://cehelp.esri.com/help/topic/com.procedural.cityengine.help/html/manual/is/create/block_params.html?resultof=%22%62%6c%6f%63%6b%22%20%22%70%61%72%61%6d%65%74%65%72%22%20%22%70%61%72%61%6d%65%74%22%20"&gt;Block Parameter&lt;/A&gt;. where I can apply my percentage breakup.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;SPAN class="" style="color: #4d4d4d;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;SPAN class="" style="color: #4d4d4d;"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;SPAN class="" style="color: #4d4d4d;"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jun 2017 12:50:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/splitarea-function/m-p/92087#M1278</guid>
      <dc:creator>AbhishekSobbana</dc:creator>
      <dc:date>2017-06-14T12:50:09Z</dc:date>
    </item>
  </channel>
</rss>

