<?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: How can I generate buildings randomly? in ArcGIS CityEngine Questions</title>
    <link>https://community.esri.com/t5/arcgis-cityengine-questions/how-can-i-generate-buildings-randomly/m-p/701989#M9189</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can import your building rule files into a master file.&amp;nbsp; The master file can then decide which rule to call.&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;import rule1:"rule1.cga"
import rule2:"rule2.cga"
import rule3:"rule3.cga"

@Enum("type1", "type2", "type3")
attr building_type = "type1"

Lot --&amp;gt;
	case building_type=="type1":	rule1.Generate
	case building_type=="type2":	rule2.Generate
	else:							rule3.Generate
‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍&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;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&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;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 05:31:56 GMT</pubDate>
    <dc:creator>CherylLau</dc:creator>
    <dc:date>2021-12-12T05:31:56Z</dc:date>
    <item>
      <title>How can I generate buildings randomly?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/how-can-i-generate-buildings-randomly/m-p/701988#M9188</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&lt;BR /&gt;I have some different building models in ".cga". So I want to use these models in a different rule file for using different building models. Does anyone know this problem?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/439663_rule1.JPG" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 17 Mar 2019 16:47:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/how-can-i-generate-buildings-randomly/m-p/701988#M9188</guid>
      <dc:creator>Halil_İbrahimŞenol</dc:creator>
      <dc:date>2019-03-17T16:47:45Z</dc:date>
    </item>
    <item>
      <title>Re: How can I generate buildings randomly?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/how-can-i-generate-buildings-randomly/m-p/701989#M9189</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can import your building rule files into a master file.&amp;nbsp; The master file can then decide which rule to call.&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;import rule1:"rule1.cga"
import rule2:"rule2.cga"
import rule3:"rule3.cga"

@Enum("type1", "type2", "type3")
attr building_type = "type1"

Lot --&amp;gt;
	case building_type=="type1":	rule1.Generate
	case building_type=="type2":	rule2.Generate
	else:							rule3.Generate
‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍&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;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 05:31:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/how-can-i-generate-buildings-randomly/m-p/701989#M9189</guid>
      <dc:creator>CherylLau</dc:creator>
      <dc:date>2021-12-12T05:31:56Z</dc:date>
    </item>
  </channel>
</rss>

