<?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: Slope / extrude buildings in ArcGIS CityEngine Questions</title>
    <link>https://community.esri.com/t5/arcgis-cityengine-questions/slope-extrude-buildings/m-p/333418#M4585</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/218678" target="_blank"&gt;Joao Pedro Marques&lt;/A&gt;‌ This rule should give you a building on a leveled lot&amp;nbsp;at the minimum of sloped shapes:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;attr buildingHeight = 15

@StartRule
Lot --&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;alignScopeToAxes(y) s('1,0,'1)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;extrude( buildingHeight )‍‍‍‍‍‍&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;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 15:47:08 GMT</pubDate>
    <dc:creator>ThomasFuchs</dc:creator>
    <dc:date>2021-12-11T15:47:08Z</dc:date>
    <item>
      <title>Slope / extrude buildings</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/slope-extrude-buildings/m-p/333411#M4578</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the best way to get building / rooftops aligned?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like this:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="310250" alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/310250_1.png" style="width: 620px; height: 412px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="310251" alt="" class="image-2 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/310251_Untitled.jpg" style="width: 620px; height: 297px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any command to get the rooftop correctly aligned, regarding the slope on the terrain?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you guys.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;JM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jan 2017 16:53:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/slope-extrude-buildings/m-p/333411#M4578</guid>
      <dc:creator>Joao_PedroMarques</dc:creator>
      <dc:date>2017-01-27T16:53:55Z</dc:date>
    </item>
    <item>
      <title>Re: Slope / extrude buildings</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/slope-extrude-buildings/m-p/333412#M4579</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;extrude(&lt;STRONG&gt;world.up.flatTop&lt;/STRONG&gt;, value)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jan 2017 23:24:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/slope-extrude-buildings/m-p/333412#M4579</guid>
      <dc:creator>LR</dc:creator>
      <dc:date>2017-01-27T23:24:39Z</dc:date>
    </item>
    <item>
      <title>Re: Slope / extrude buildings</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/slope-extrude-buildings/m-p/333413#M4580</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm currenty using this cga for the building correct heights (based on geodatabase atrributes) :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;#initalize attribute set to a particular value or 0&lt;/P&gt;&lt;P&gt;attr NPisos = 10&lt;BR /&gt;attr avgFloorHeight = 3&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;@StartRule &lt;BR /&gt;Lot --&amp;gt; extrude(NPisos * avgFloorHeight)&amp;nbsp;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NPisos is Number of floors.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can i add that line in my cga? What would be the value?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 28 Jan 2017 14:46:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/slope-extrude-buildings/m-p/333413#M4580</guid>
      <dc:creator>Joao_PedroMarques</dc:creator>
      <dc:date>2017-01-28T14:46:42Z</dc:date>
    </item>
    <item>
      <title>Re: Slope / extrude buildings</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/slope-extrude-buildings/m-p/333414#M4581</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just building off the comment from &lt;A href="https://community.esri.com/migrated-users/216798" target="_blank"&gt;Rasa Ra&lt;/A&gt;&amp;nbsp; it would be something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;#initalize attribute set to a particular value or 0

attr NPisos = 10
attr avgFloorHeight = 3

@StartRule 
Lot --&amp;gt; extrude(world.up.flatTop, NPisos * avgFloorHeight)&amp;nbsp;‍‍‍‍‍‍‍&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 15:47:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/slope-extrude-buildings/m-p/333414#M4581</guid>
      <dc:creator>DevinLavigne</dc:creator>
      <dc:date>2021-12-11T15:47:05Z</dc:date>
    </item>
    <item>
      <title>Re: Slope / extrude buildings</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/slope-extrude-buildings/m-p/333415#M4582</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you David, but something is missing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i found the topic in the help faq:&amp;nbsp;&lt;A class="link-titled" href="http://cehelp.esri.com/help/index.jsp?topic=/com.procedural.cityengine.help/html/cgareference/op_extrude.html" title="http://cehelp.esri.com/help/index.jsp?topic=/com.procedural.cityengine.help/html/cgareference/op_extrude.html"&gt;Help -&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But still cant figure it how to work &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 28 Jan 2017 20:03:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/slope-extrude-buildings/m-p/333415#M4582</guid>
      <dc:creator>Joao_PedroMarques</dc:creator>
      <dc:date>2017-01-28T20:03:08Z</dc:date>
    </item>
    <item>
      <title>Re: Slope / extrude buildings</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/slope-extrude-buildings/m-p/333416#M4583</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you using CE 2016? - I think flatTop CGA was only introduced at 2016.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you align shapes to terrain, instead of projecting, use translate to minimum then extrude the building through the terrain.&amp;nbsp; I don't know if there's another way to replicate flatTop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jan 2017 07:58:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/slope-extrude-buildings/m-p/333416#M4583</guid>
      <dc:creator>BenLeslie1</dc:creator>
      <dc:date>2017-01-30T07:58:55Z</dc:date>
    </item>
    <item>
      <title>Re: Slope / extrude buildings</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/slope-extrude-buildings/m-p/333417#M4584</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ben,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes i'm using 2016.1 and even when i use the&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;translate to minimum i get the same result.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jan 2017 14:45:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/slope-extrude-buildings/m-p/333417#M4584</guid>
      <dc:creator>Joao_PedroMarques</dc:creator>
      <dc:date>2017-01-30T14:45:55Z</dc:date>
    </item>
    <item>
      <title>Re: Slope / extrude buildings</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/slope-extrude-buildings/m-p/333418#M4585</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/218678" target="_blank"&gt;Joao Pedro Marques&lt;/A&gt;‌ This rule should give you a building on a leveled lot&amp;nbsp;at the minimum of sloped shapes:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;attr buildingHeight = 15

@StartRule
Lot --&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;alignScopeToAxes(y) s('1,0,'1)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;extrude( buildingHeight )‍‍‍‍‍‍&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;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 15:47:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/slope-extrude-buildings/m-p/333418#M4585</guid>
      <dc:creator>ThomasFuchs</dc:creator>
      <dc:date>2021-12-11T15:47:08Z</dc:date>
    </item>
    <item>
      <title>Re: Slope / extrude buildings</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/slope-extrude-buildings/m-p/333419#M4586</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It worked!1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tahnk you so much, Thomas! &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 05 Feb 2017 16:18:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/slope-extrude-buildings/m-p/333419#M4586</guid>
      <dc:creator>Joao_PedroMarques</dc:creator>
      <dc:date>2017-02-05T16:18:18Z</dc:date>
    </item>
  </channel>
</rss>

