<?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 Extrude shapefile starting from specific elevation in ArcGIS CityEngine Questions</title>
    <link>https://community.esri.com/t5/arcgis-cityengine-questions/extrude-shapefile-starting-from-specific-elevation/m-p/502912#M6802</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi. I have a couple of shapefiles, based on diffrent floors shapes. I need to extrude one by one, starting from the top of last floor. How to do that using rule ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 06 Dec 2014 21:28:15 GMT</pubDate>
    <dc:creator>deleted-user-VyP7GAnGbE7x</dc:creator>
    <dc:date>2014-12-06T21:28:15Z</dc:date>
    <item>
      <title>Extrude shapefile starting from specific elevation</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/extrude-shapefile-starting-from-specific-elevation/m-p/502912#M6802</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi. I have a couple of shapefiles, based on diffrent floors shapes. I need to extrude one by one, starting from the top of last floor. How to do that using rule ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Dec 2014 21:28:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/extrude-shapefile-starting-from-specific-elevation/m-p/502912#M6802</guid>
      <dc:creator>deleted-user-VyP7GAnGbE7x</dc:creator>
      <dc:date>2014-12-06T21:28:15Z</dc:date>
    </item>
    <item>
      <title>Re: Extrude shapefile starting from specific elevation</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/extrude-shapefile-starting-from-specific-elevation/m-p/502913#M6803</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you explain these shapes and their attributes further and/or provide screen shots?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Dec 2014 17:39:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/extrude-shapefile-starting-from-specific-elevation/m-p/502913#M6803</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2014-12-07T17:39:44Z</dc:date>
    </item>
    <item>
      <title>Re: Extrude shapefile starting from specific elevation</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/extrude-shapefile-starting-from-specific-elevation/m-p/502914#M6804</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Of course.&amp;nbsp; This is one buliding, I have a shapefiles made by&amp;nbsp; floors plans and I need to create this building whith this shapes one floor by one, but I need to save details, every cut and heights basing on building plans. Extrusion in CGA file starts extrude from 0 to specific elevation, I'm trying extrude shapefiles from specific elevation (for e.g 5m or top of previous floor ) to specific elevation.&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="37728" alt="Zrzut ekranu (83).png" class="jive-image image-1" src="/legacyfs/online/37728_Zrzut ekranu (83).png" style="width: 620px; height: 349px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="37729" alt="Zrzut ekranu (84).png" class="jive-image image-2" src="/legacyfs/online/37729_Zrzut ekranu (84).png" style="width: 620px; height: 349px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="38201" alt="Zrzut ekranu (85).png" class="jive-image image-3" src="/legacyfs/online/38201_Zrzut ekranu (85).png" style="width: 620px; height: 349px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="38202" alt="Zrzut ekranu (86).png" class="image-4 jive-image" src="/legacyfs/online/38202_Zrzut ekranu (86).png" style="width: 620px; height: 349px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Dec 2014 17:59:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/extrude-shapefile-starting-from-specific-elevation/m-p/502914#M6804</guid>
      <dc:creator>deleted-user-VyP7GAnGbE7x</dc:creator>
      <dc:date>2014-12-07T17:59:32Z</dc:date>
    </item>
    <item>
      <title>Re: Extrude shapefile starting from specific elevation</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/extrude-shapefile-starting-from-specific-elevation/m-p/502915#M6805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are the shapes all resting on the same XZ plane (ground level)? Or do they rest at correct elevations already? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you need the floors to have specific floor heights, which differ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Dec 2014 20:06:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/extrude-shapefile-starting-from-specific-elevation/m-p/502915#M6805</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2014-12-07T20:06:05Z</dc:date>
    </item>
    <item>
      <title>Re: Extrude shapefile starting from specific elevation</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/extrude-shapefile-starting-from-specific-elevation/m-p/502916#M6806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;All shapes are resting on the same ground level, no Z coordinate. &lt;/P&gt;&lt;P&gt;Heights of floors should be driffrent, but if be 3,75m for each one, would be good. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Dec 2014 20:18:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/extrude-shapefile-starting-from-specific-elevation/m-p/502916#M6806</guid>
      <dc:creator>deleted-user-VyP7GAnGbE7x</dc:creator>
      <dc:date>2014-12-07T20:18:01Z</dc:date>
    </item>
    <item>
      <title>Re: Extrude shapefile starting from specific elevation</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/extrude-shapefile-starting-from-specific-elevation/m-p/502917#M6807</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is easy if all the floor heights are the same, because the floors can be lifted to the right height without any awareness of the other floor plans. This is because a CGA rule only runs on one shape at a time. In this case the shapes only need to know their floor number (what button you push in the elevator). BUT, if each floor has a different height (floor-to-floor height), then we would add an attribute for that, but then rather than relying on the floor number for setting the elevation, we would need the actual elevation of each floor, which makes for a bit more manual calculation. Here is the rule for using only a floor number with a constant floor height:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;



version "2014.1"


# Using a constant floor height to keep things simple.
const floorHeight = 3.75


# Set to correct floor number for this shape. Floor #0 is ground level.
attr floorNumber = 0 


@StartRule
FloorPlanStack --&amp;gt;
&amp;nbsp; t(0, floorNumber * floorHeight, 0)
&amp;nbsp; extrude(floorHeight)










&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shapes start on same plane, and you set the floorNumber on each shape:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="FloorPlansOnLevelElevation.jpg" class="jive-image image-1" src="https://community.esri.com/legacyfs/online/38208_FloorPlansOnLevelElevation.jpg" style="width: 620px; height: 394px;" /&gt;&lt;/P&gt;&lt;P&gt;Models generated will translate the shape upwards to correct floor elevation, and extrude upwards by floorHeight amount.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="FloorPlansOnLevelElevationModels.jpg" class="jive-image image-2" src="https://community.esri.com/legacyfs/online/38209_FloorPlansOnLevelElevationModels.jpg" style="width: 620px; height: 394px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 22:04:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/extrude-shapefile-starting-from-specific-elevation/m-p/502917#M6807</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-12-11T22:04:28Z</dc:date>
    </item>
    <item>
      <title>Re: Extrude shapefile starting from specific elevation</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/extrude-shapefile-starting-from-specific-elevation/m-p/502918#M6808</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much! Works excellent!&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Zrzut ekranu (87).png" class="jive-image image-1" src="/legacyfs/online/38203_Zrzut ekranu (87).png" style="max-width: 620px; height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Dec 2014 21:39:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/extrude-shapefile-starting-from-specific-elevation/m-p/502918#M6808</guid>
      <dc:creator>deleted-user-VyP7GAnGbE7x</dc:creator>
      <dc:date>2014-12-07T21:39:26Z</dc:date>
    </item>
  </channel>
</rss>

