<?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 setback a second floor with &amp;quot;push&amp;quot;? in ArcGIS CityEngine Questions</title>
    <link>https://community.esri.com/t5/arcgis-cityengine-questions/how-can-i-setback-a-second-floor-with-quot-push/m-p/50059#M678</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Lorin.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I understand you correctly you want to create a building that "steps back", the best way I have found to do that is to create the bottom floor shape, and then move that one up with the "t" function so the code would look something like this:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;attr siy = 0 // floor counter&lt;BR /&gt;attr sty = 3 //Number of floors&lt;BR /&gt;attr floorHeight = 3 //Floor height &lt;BR /&gt;attr setbackDist = 1 //setback distance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@startrule&lt;BR /&gt;A01 --&amp;gt; //This code creates a loop that adds new floors until the "sty" is reached.&lt;BR /&gt; case siy &amp;lt; sty : A02(siy,sty) set(siy,siy+1) t(0,floorHeight,0) A01&lt;BR /&gt; else: A02(siy,sty)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A02(siy,sty) --&amp;gt; //This code takes the top floor and makes it the roof &lt;BR /&gt; case siy == sty : setback(setbackDist*siy-1) {front : NIL | remainder : Roof00}&lt;BR /&gt; else: A03(siy,sty)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A03(siy,sty) --&amp;gt; //This code creates the setbact of each floor, siy is the floor number where siy = 0 is the bottom floor, and siy = sty is the roof&lt;BR /&gt; setback(setbackDist*siy) {front : Balcony(siy,sty) | remainder : A04(siy,sty)}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A04(siy,sty) --&amp;gt; // here is each floor extruded to create a volume. &lt;BR /&gt; extrude(floorHeight) &lt;BR /&gt; comp(f) {side: Facade | bottom : Floor00}&lt;BR /&gt; &lt;BR /&gt;Balcony(siy,sty) --&amp;gt; //this is the balcony area&lt;BR /&gt; setback(setbackDist*siy-1) {front :NIL | remainder: color(1,0,0)Balcony01}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is maybe not the best code for doing it, but it will get the job done, you can always play around with it to see if you can make it better &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Oct 2018 11:44:29 GMT</pubDate>
    <dc:creator>KristianMortensen1</dc:creator>
    <dc:date>2018-10-22T11:44:29Z</dc:date>
    <item>
      <title>How can I setback a second floor with "push"?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/how-can-i-setback-a-second-floor-with-quot-push/m-p/50057#M676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How can I setback a second floor with "push"?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Oct 2018 19:26:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/how-can-i-setback-a-second-floor-with-quot-push/m-p/50057#M676</guid>
      <dc:creator>lorinroser</dc:creator>
      <dc:date>2018-10-18T19:26:28Z</dc:date>
    </item>
    <item>
      <title>Re: How can I setback a second floor with "push"?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/how-can-i-setback-a-second-floor-with-quot-push/m-p/50058#M677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to extrude a first floor then create a footprint with the front setback, extude again and place the second extrusion on top of the first&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Oct 2018 17:38:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/how-can-i-setback-a-second-floor-with-quot-push/m-p/50058#M677</guid>
      <dc:creator>lorinroser</dc:creator>
      <dc:date>2018-10-20T17:38:13Z</dc:date>
    </item>
    <item>
      <title>Re: How can I setback a second floor with "push"?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/how-can-i-setback-a-second-floor-with-quot-push/m-p/50059#M678</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Lorin.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I understand you correctly you want to create a building that "steps back", the best way I have found to do that is to create the bottom floor shape, and then move that one up with the "t" function so the code would look something like this:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;attr siy = 0 // floor counter&lt;BR /&gt;attr sty = 3 //Number of floors&lt;BR /&gt;attr floorHeight = 3 //Floor height &lt;BR /&gt;attr setbackDist = 1 //setback distance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@startrule&lt;BR /&gt;A01 --&amp;gt; //This code creates a loop that adds new floors until the "sty" is reached.&lt;BR /&gt; case siy &amp;lt; sty : A02(siy,sty) set(siy,siy+1) t(0,floorHeight,0) A01&lt;BR /&gt; else: A02(siy,sty)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A02(siy,sty) --&amp;gt; //This code takes the top floor and makes it the roof &lt;BR /&gt; case siy == sty : setback(setbackDist*siy-1) {front : NIL | remainder : Roof00}&lt;BR /&gt; else: A03(siy,sty)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A03(siy,sty) --&amp;gt; //This code creates the setbact of each floor, siy is the floor number where siy = 0 is the bottom floor, and siy = sty is the roof&lt;BR /&gt; setback(setbackDist*siy) {front : Balcony(siy,sty) | remainder : A04(siy,sty)}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A04(siy,sty) --&amp;gt; // here is each floor extruded to create a volume. &lt;BR /&gt; extrude(floorHeight) &lt;BR /&gt; comp(f) {side: Facade | bottom : Floor00}&lt;BR /&gt; &lt;BR /&gt;Balcony(siy,sty) --&amp;gt; //this is the balcony area&lt;BR /&gt; setback(setbackDist*siy-1) {front :NIL | remainder: color(1,0,0)Balcony01}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is maybe not the best code for doing it, but it will get the job done, you can always play around with it to see if you can make it better &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Oct 2018 11:44:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/how-can-i-setback-a-second-floor-with-quot-push/m-p/50059#M678</guid>
      <dc:creator>KristianMortensen1</dc:creator>
      <dc:date>2018-10-22T11:44:29Z</dc:date>
    </item>
  </channel>
</rss>

