<?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: Stochastic Rule on Heigh in ArcGIS CityEngine Questions</title>
    <link>https://community.esri.com/t5/arcgis-cityengine-questions/stochastic-rule-on-heigh/m-p/676594#M8916</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1. Range has mixed data types. Since random is a string, all must be string. Change to:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@Range (Random="random", Floor1="5", Floor2="10", Floor3="15")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2, extrude command should use constant function_Height, not attribute Height. Change to:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;extrude(world.y, function_Height)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;3. The constant function_Height needs a matching else for the case statement. The else you have now applies to the stochastic structure and not the case. Also the extra else now needs a float function, since your Height attribute is a string and not a float. Change to:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;const function_Height =&lt;/P&gt;&lt;P&gt;&amp;nbsp; case Height == "random" :&lt;/P&gt;&lt;P&gt;&amp;nbsp; 33% : 5&lt;/P&gt;&lt;P&gt;&amp;nbsp; 33% : 10&lt;/P&gt;&lt;P&gt;&amp;nbsp; else : 15&lt;/P&gt;&lt;P&gt;&amp;nbsp; else: float(Height)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Oct 2014 14:14:05 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2014-10-29T14:14:05Z</dc:date>
    <item>
      <title>Stochastic Rule on Heigh</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/stochastic-rule-on-heigh/m-p/676593#M8915</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have defined an "Height" attribute which has 3 specific values.&lt;/P&gt;&lt;P&gt;I want to create a stochastic rule that would give me 33% percent of each height when applied on buildings.&lt;/P&gt;&lt;P&gt;Could someone help me with managing this problem? I tried creating a 'case-else' rule on "height" but it doesn`t seems to be correct...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eg.&lt;/P&gt;&lt;P&gt;@Range (Random="random", Floor1=5, Floor2=10, Floor3=15)&lt;/P&gt;&lt;P&gt;attr Height = "random"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Building --&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; extrude(world.y, Height)&lt;/P&gt;&lt;P&gt;&amp;nbsp; Mass&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;const function_Height = &lt;/P&gt;&lt;P&gt;&amp;nbsp; case Height == "random" :&lt;/P&gt;&lt;P&gt;&amp;nbsp; 33% : 5&lt;/P&gt;&lt;P&gt;&amp;nbsp; 33% : 10&lt;/P&gt;&lt;P&gt;&amp;nbsp; else : 15&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2014 11:40:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/stochastic-rule-on-heigh/m-p/676593#M8915</guid>
      <dc:creator>IonutAlixandroae</dc:creator>
      <dc:date>2014-10-29T11:40:13Z</dc:date>
    </item>
    <item>
      <title>Re: Stochastic Rule on Heigh</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/stochastic-rule-on-heigh/m-p/676594#M8916</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1. Range has mixed data types. Since random is a string, all must be string. Change to:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@Range (Random="random", Floor1="5", Floor2="10", Floor3="15")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2, extrude command should use constant function_Height, not attribute Height. Change to:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;extrude(world.y, function_Height)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;3. The constant function_Height needs a matching else for the case statement. The else you have now applies to the stochastic structure and not the case. Also the extra else now needs a float function, since your Height attribute is a string and not a float. Change to:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;const function_Height =&lt;/P&gt;&lt;P&gt;&amp;nbsp; case Height == "random" :&lt;/P&gt;&lt;P&gt;&amp;nbsp; 33% : 5&lt;/P&gt;&lt;P&gt;&amp;nbsp; 33% : 10&lt;/P&gt;&lt;P&gt;&amp;nbsp; else : 15&lt;/P&gt;&lt;P&gt;&amp;nbsp; else: float(Height)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2014 14:14:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/stochastic-rule-on-heigh/m-p/676594#M8916</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2014-10-29T14:14:05Z</dc:date>
    </item>
  </channel>
</rss>

