<?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: Getting shape height using floors numbers in ArcGIS CityEngine Questions</title>
    <link>https://community.esri.com/t5/arcgis-cityengine-questions/getting-shape-height-using-floors-numbers/m-p/37114#M515</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is pretty simple. This is from the help file:&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;SPAN style="color: #000000; font-family: Arial, Helvetica, sans-serif; font-size: 14.4px;"&gt;To use these attributes with the CGA grammar you need to declare CGA attributes with matching names. A simple CGA rule file could look like this:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;attr height = 10&amp;nbsp; Lot --&amp;gt; extrude(height)&lt;/PRE&gt;&lt;P style="padding-left: 60px;"&gt;&lt;SPAN style="color: #000000; font-family: Arial, Helvetica, sans-serif; font-size: 14.4px;"&gt;After assigning this rule file to the shapes, the CGA attribute &lt;/SPAN&gt;&lt;SPAN class="code" style="color: #000000; font-family: 'Courier New', Courier, monospace; font-size: 0.75rem; font-weight: bold; margin: 5px 0 0 5px;"&gt;height&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Arial, Helvetica, sans-serif; font-size: 14.4px;"&gt; appears in the &lt;/SPAN&gt;&lt;EM style="color: #000000; font-family: Arial, Helvetica, sans-serif; font-size: 14.4px;"&gt;CGA Attribute Mapping&lt;/EM&gt;&lt;SPAN style="color: #000000; font-family: Arial, Helvetica, sans-serif; font-size: 14.4px;"&gt; tab of the Inspector. Note that the Source field is set to &lt;/SPAN&gt;&lt;EM style="color: #000000; font-family: Arial, Helvetica, sans-serif; font-size: 14.4px;"&gt;Object&lt;/EM&gt;&lt;SPAN style="color: #000000; font-family: Arial, Helvetica, sans-serif; font-size: 14.4px;"&gt;, which denotes that the CGA attribute height is controlled by the object attribute of the lot.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So in your case this is all you would need to do&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;attr Your_Shapefile_Field_Name_For_Floors = 10&amp;nbsp; #value can be anything as it will map to the data
attr avgFloorHeight&amp;nbsp; = 3 #setting this as an attribute will give you the ability to change in each building if necessary

@StartRule
Lot --&amp;gt; extrude(Your_Shapefile_Field_Name_For_Floors * avgFloorHeight) #again you could hardcode "3" here&lt;/PRE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Dec 2021 21:26:16 GMT</pubDate>
    <dc:creator>DevinLavigne</dc:creator>
    <dc:date>2021-12-10T21:26:16Z</dc:date>
    <item>
      <title>Getting shape height using floors numbers</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/getting-shape-height-using-floors-numbers/m-p/37113#M514</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone. I'm new to CityEngine and i'm totally in the dark with a question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The question is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to i extrude my building shape files, when i only have number of floors for each building in the database? Is it possible to generate the building, knowing from the start that the average floor is 3meters height?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What would be the rule for this example?&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>Tue, 26 Jul 2016 20:46:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/getting-shape-height-using-floors-numbers/m-p/37113#M514</guid>
      <dc:creator>Joao_PedroMarques</dc:creator>
      <dc:date>2016-07-26T20:46:55Z</dc:date>
    </item>
    <item>
      <title>Re: Getting shape height using floors numbers</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/getting-shape-height-using-floors-numbers/m-p/37114#M515</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is pretty simple. This is from the help file:&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;SPAN style="color: #000000; font-family: Arial, Helvetica, sans-serif; font-size: 14.4px;"&gt;To use these attributes with the CGA grammar you need to declare CGA attributes with matching names. A simple CGA rule file could look like this:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;attr height = 10&amp;nbsp; Lot --&amp;gt; extrude(height)&lt;/PRE&gt;&lt;P style="padding-left: 60px;"&gt;&lt;SPAN style="color: #000000; font-family: Arial, Helvetica, sans-serif; font-size: 14.4px;"&gt;After assigning this rule file to the shapes, the CGA attribute &lt;/SPAN&gt;&lt;SPAN class="code" style="color: #000000; font-family: 'Courier New', Courier, monospace; font-size: 0.75rem; font-weight: bold; margin: 5px 0 0 5px;"&gt;height&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Arial, Helvetica, sans-serif; font-size: 14.4px;"&gt; appears in the &lt;/SPAN&gt;&lt;EM style="color: #000000; font-family: Arial, Helvetica, sans-serif; font-size: 14.4px;"&gt;CGA Attribute Mapping&lt;/EM&gt;&lt;SPAN style="color: #000000; font-family: Arial, Helvetica, sans-serif; font-size: 14.4px;"&gt; tab of the Inspector. Note that the Source field is set to &lt;/SPAN&gt;&lt;EM style="color: #000000; font-family: Arial, Helvetica, sans-serif; font-size: 14.4px;"&gt;Object&lt;/EM&gt;&lt;SPAN style="color: #000000; font-family: Arial, Helvetica, sans-serif; font-size: 14.4px;"&gt;, which denotes that the CGA attribute height is controlled by the object attribute of the lot.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So in your case this is all you would need to do&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;attr Your_Shapefile_Field_Name_For_Floors = 10&amp;nbsp; #value can be anything as it will map to the data
attr avgFloorHeight&amp;nbsp; = 3 #setting this as an attribute will give you the ability to change in each building if necessary

@StartRule
Lot --&amp;gt; extrude(Your_Shapefile_Field_Name_For_Floors * avgFloorHeight) #again you could hardcode "3" here&lt;/PRE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 21:26:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/getting-shape-height-using-floors-numbers/m-p/37114#M515</guid>
      <dc:creator>DevinLavigne</dc:creator>
      <dc:date>2021-12-10T21:26:16Z</dc:date>
    </item>
    <item>
      <title>Re: Getting shape height using floors numbers</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/getting-shape-height-using-floors-numbers/m-p/37115#M516</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Wow, thanks for the fast replay.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Well it worked like a charm, fantastic just fantastic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I definitly need to read again and again the help file. Is it possible to get the help file in a .pdf format?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you once again, Devin.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jul 2016 11:26:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/getting-shape-height-using-floors-numbers/m-p/37115#M516</guid>
      <dc:creator>Joao_PedroMarques</dc:creator>
      <dc:date>2016-07-27T11:26:04Z</dc:date>
    </item>
    <item>
      <title>Re: Getting shape height using floors numbers</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/getting-shape-height-using-floors-numbers/m-p/37116#M517</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Go here: &lt;A href="http://cehelp.esri.com/help/topic/com.procedural.cityengine.help/html/manual/toc.html" title="http://cehelp.esri.com/help/topic/com.procedural.cityengine.help/html/manual/toc.html"&gt;CityEngine Manual : Table Of Contents&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Do this: &lt;IMG __jive_id="213347" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/213347_pastedImage_1.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jul 2016 12:58:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/getting-shape-height-using-floors-numbers/m-p/37116#M517</guid>
      <dc:creator>LR</dc:creator>
      <dc:date>2016-07-27T12:58:34Z</dc:date>
    </item>
    <item>
      <title>Re: Getting shape height using floors numbers</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/getting-shape-height-using-floors-numbers/m-p/37117#M518</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nice tip!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, JR&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jul 2016 13:15:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/getting-shape-height-using-floors-numbers/m-p/37117#M518</guid>
      <dc:creator>Joao_PedroMarques</dc:creator>
      <dc:date>2016-07-27T13:15:59Z</dc:date>
    </item>
  </channel>
</rss>

