<?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 How to generate buildings with distinct architecture using city engine? in ArcGIS CityEngine Questions</title>
    <link>https://community.esri.com/t5/arcgis-cityengine-questions/how-to-generate-buildings-with-distinct/m-p/757317#M9980</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When we have distinct architectures of buildings ,then how can we create such buildings in city engine?Do we have to create cga rule file separately for each distinct architecture buildings or there is other solution?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 28 Nov 2016 10:25:46 GMT</pubDate>
    <dc:creator>mansimittal1</dc:creator>
    <dc:date>2016-11-28T10:25:46Z</dc:date>
    <item>
      <title>How to generate buildings with distinct architecture using city engine?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/how-to-generate-buildings-with-distinct/m-p/757317#M9980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When we have distinct architectures of buildings ,then how can we create such buildings in city engine?Do we have to create cga rule file separately for each distinct architecture buildings or there is other solution?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Nov 2016 10:25:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/how-to-generate-buildings-with-distinct/m-p/757317#M9980</guid>
      <dc:creator>mansimittal1</dc:creator>
      <dc:date>2016-11-28T10:25:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to generate buildings with distinct architecture using city engine?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/how-to-generate-buildings-with-distinct/m-p/757318#M9981</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could create different cga files for each style, but one of the advantages of writing cga to generate buildings is that you can create a variations just by changing the attribute values in the cga file. &amp;nbsp;For example, you could have an attribute that specifies the height of the building, the window size, the facade color, or if there are facade decorations. &amp;nbsp;You can have attributes to describe many different factors. &amp;nbsp;Then, each initial shape or building footprint can be assigned different values for these attributes to produce different buildings from the same rule file. &amp;nbsp;Randomness and probability can even be built into the rules to increase variety. &amp;nbsp;Of course, if the architectural styles you have in mind are completely different, it may become easier at some point to just write separate&amp;nbsp;cga rule files for each different style. &amp;nbsp;That programming choice is up to you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Nov 2016 10:35:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/how-to-generate-buildings-with-distinct/m-p/757318#M9981</guid>
      <dc:creator>CherylLau</dc:creator>
      <dc:date>2016-11-28T10:35:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to generate buildings with distinct architecture using city engine?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/how-to-generate-buildings-with-distinct/m-p/757319#M9982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;okay. I have more than 3000 lots with totally different architecture styles.This will be very hectic.Are there no easy solutions other than creating separate cga files?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Nov 2016 11:04:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/how-to-generate-buildings-with-distinct/m-p/757319#M9982</guid>
      <dc:creator>mansimittal1</dc:creator>
      <dc:date>2016-11-28T11:04:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to generate buildings with distinct architecture using city engine?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/how-to-generate-buildings-with-distinct/m-p/757320#M9983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In many cases, you may not need separate files, but just keep a well built&amp;nbsp;case -else structure that makes the breakpoints in style divergence clear. You do need to code each style you want to represent however, and fine a way to tie them back to your lot files whether it is random assignment or attribute driven. Generally, you can create a valid scene at the scale you are talking about by just grabbing the top 3 styles and developing rule parameter options for them. &lt;BR /&gt;If you want to go the multiple rule file approach to keep it separated, as most buildings share some common massing elements, it is possible use one rule as a library for the others. Essentially any code you see as a duplicate you just put into your library rule and call them in the style rules.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Nov 2016 21:44:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/how-to-generate-buildings-with-distinct/m-p/757320#M9983</guid>
      <dc:creator>DavidWasserman</dc:creator>
      <dc:date>2016-11-29T21:44:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to generate buildings with distinct architecture using city engine?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/how-to-generate-buildings-with-distinct/m-p/757321#M9984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I guess my response wasn't too clear. &amp;nbsp;One of the advantages of using cga to generate buildings is that you can generate a variety of buildings (of different styles) with just a single cga file. &amp;nbsp;Attributes can describe many different factors that you can set to different values. &amp;nbsp;You can specifically create preset styles using the style keyword. &amp;nbsp;Probability and randomness can also help generate variation or choose different styles. &amp;nbsp;It is possible to generate 3000 different buildings with just a single rule file. &amp;nbsp;If you do want to separate some code into multiple files, you can use imports as well to create links between files.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Nov 2016 09:32:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/how-to-generate-buildings-with-distinct/m-p/757321#M9984</guid>
      <dc:creator>CherylLau</dc:creator>
      <dc:date>2016-11-30T09:32:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to generate buildings with distinct architecture using city engine?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/how-to-generate-buildings-with-distinct/m-p/757322#M9985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After long time I am back to this problem.And I am trying to code it all in single file but there are many problems I am facing and even do not know if my approach towards dynamic coding is correct or not.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 May 2017 12:27:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/how-to-generate-buildings-with-distinct/m-p/757322#M9985</guid>
      <dc:creator>mansimittal1</dc:creator>
      <dc:date>2017-05-23T12:27:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to generate buildings with distinct architecture using city engine?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/how-to-generate-buildings-with-distinct/m-p/757323#M9986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mansi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you share any details about the issues are you facing? Is there a specific element we can help with?&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 May 2017 21:43:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/how-to-generate-buildings-with-distinct/m-p/757323#M9986</guid>
      <dc:creator>DavidWasserman</dc:creator>
      <dc:date>2017-05-23T21:43:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to generate buildings with distinct architecture using city engine?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/how-to-generate-buildings-with-distinct/m-p/757324#M9987</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;nbsp;&lt;IMG alt="Rule files" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/354022_Untitled.png" style="width: 620px; height: 409px;" /&gt;&lt;/P&gt;&lt;P&gt;Yeah ,please look in these rule files snapshots.&lt;/P&gt;&lt;P&gt;testfile.cga is the main file and it is calling 4 other rule files which has same code as in floor0.cga snap shown here.&lt;/P&gt;&lt;P&gt;As my requirements are already specified that each building design structure would be different.Also floor will have different dimension &amp;amp; number of apartments and it is possible that every floor has different design structure too.Like there are many conditions that can happen.&lt;/P&gt;&lt;P&gt;Because of which I am bound to create new file for every floor.And this could lead to more than 100 files.&lt;/P&gt;&lt;P&gt;Also if I keep one file than I have to create as many different variables as floors because if variables kept same they would change other floor values.&lt;/P&gt;&lt;P&gt;So I want to know if my approach is right towards creating more than 1000 buildings at a time? What changes can I do to my coding so that it would not become lethargic.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 May 2017 06:39:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/how-to-generate-buildings-with-distinct/m-p/757324#M9987</guid>
      <dc:creator>mansimittal1</dc:creator>
      <dc:date>2017-05-26T06:39:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to generate buildings with distinct architecture using city engine?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/how-to-generate-buildings-with-distinct/m-p/757325#M9988</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The advice that I could give is to look at what your floors have in common, and see if you can find some common attributes. &amp;nbsp;They don't have to share the same values. &amp;nbsp;If so, then you can probably write a single floor rule that covers all cases. &amp;nbsp;If not, then maybe you do need several floor rules.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, the floor rule can have an attribute for the number of apartments. &amp;nbsp;In the parent rule, you can set this attribute to different values for each floor using set().&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_set.html" title="http://cehelp.esri.com/help/topic/com.procedural.cityengine.help/html/cgareference/op_set.html" rel="nofollow noopener noreferrer" target="_blank"&gt;set Operation&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This rule sets the number of apartments to 1 for the ground floor and sets the number of apartments to 10 for all other floors.&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;Floor --&amp;gt;
&amp;nbsp;&amp;nbsp; case split.index==0:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set(floor.numApts, 1)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; f0.floor
&amp;nbsp;&amp;nbsp; else:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set(floor.numApts, 10)‍‍‍‍‍‍
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; f0.floor&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;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Remember that you can also have attributes like floorLayout which can have values such as {"GrandLobby", "OShaped", "SingleHallwayWithApartmentsOnEachSide"}. &amp;nbsp;Then, in the floor rule, based on this attribute, you can decide whether to create a single large lobby, a floor with apartments arranged around the edges in an O shape, or a floor with a single hallway down the middle and apartments on each side. &amp;nbsp;These are just simplified examples to illustrate some things you can do with attributes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 08:06:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/how-to-generate-buildings-with-distinct/m-p/757325#M9988</guid>
      <dc:creator>CherylLau</dc:creator>
      <dc:date>2021-12-12T08:06:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to generate buildings with distinct architecture using city engine?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/how-to-generate-buildings-with-distinct/m-p/757326#M9989</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there a location to find cga rules? Like those for generating buildings?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jul 2018 13:56:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/how-to-generate-buildings-with-distinct/m-p/757326#M9989</guid>
      <dc:creator>JRAdams</dc:creator>
      <dc:date>2018-07-19T13:56:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to generate buildings with distinct architecture using city engine?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/how-to-generate-buildings-with-distinct/m-p/757327#M9990</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are simple building rules in ESRI.lib.&amp;nbsp; Building_From_Footprint.cga takes as input a 2D initial shape representing the building footprint.&amp;nbsp; Building_From_Mass_Texturizer.cga takes as input a 3D mass model of the building and puts textures on it.&amp;nbsp; Building_From_OpenStreetMap.cga is for 2D footprints from OpenStreetMap data which may have object attributes specifying heights or colors (i.e. height, building__levels, roof__height, roof__shape, building__colour, roof__colour).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jul 2018 15:27:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/how-to-generate-buildings-with-distinct/m-p/757327#M9990</guid>
      <dc:creator>CherylLau</dc:creator>
      <dc:date>2018-07-19T15:27:43Z</dc:date>
    </item>
  </channel>
</rss>

