<?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: Extrude shapefile according to height attribute in ArcGIS CityEngine Questions</title>
    <link>https://community.esri.com/t5/arcgis-cityengine-questions/extrude-shapefile-according-to-height-attribute/m-p/187873#M2520</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have to define it properly in the rule too, i. e. height ="", not height = 0, because then the rule assumes it's a float and won't connect to your str object attribute.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 31 Mar 2016 22:14:22 GMT</pubDate>
    <dc:creator>LR</dc:creator>
    <dc:date>2016-03-31T22:14:22Z</dc:date>
    <item>
      <title>Extrude shapefile according to height attribute</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/extrude-shapefile-according-to-height-attribute/m-p/187861#M2508</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have imported a shapefile into CityEngin and need to extrude the buildings according to an existing height attribute in the shapefile. For example: If there are 3 buildings with height values of 30; 70; 20. Then the buildings have to be extruded according to each one's value. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Do I need to create an attribute which represents the height attribute for each specific shape? The height attribute is Building_height. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;attr z = Building_height&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Lot --&amp;gt; Shape extrude(z)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Do I need to define the shapefile in the rule code?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help will be greatly appreciated&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Mar 2012 05:53:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/extrude-shapefile-according-to-height-attribute/m-p/187861#M2508</guid>
      <dc:creator>CarlBester</dc:creator>
      <dc:date>2012-03-01T05:53:27Z</dc:date>
    </item>
    <item>
      <title>Re: Extrude shapefile according to height attribute</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/extrude-shapefile-according-to-height-attribute/m-p/187862#M2509</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Time to give back to community &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here are the steps:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1- import the shapefile&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2- create a rule file and define an attribute with the same name as the one found on the shapefile&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3- associate the rule file to each shape imported onto the scene&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Look at the screens attached :).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;After importing the shapefile and creating the rule which uses a attribute with the SAME name as the one found on the object attributes, you just have to make sure that the rule file is associated to the shapes, and that the attribute from the CGA is sourced to read its value from each shape's attributes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;I have imported a shapefile into CityEngin and need to extrude the buildings according to an existing height attribute in the shapefile. For example: If there are 3 buildings with height values of 30; 70; 20. Then the buildings have to be extruded according to each one's value. &lt;BR /&gt;Do I need to create an attribute which represents the height attribute for each specific shape? The height attribute is Building_height. &lt;BR /&gt;&lt;BR /&gt;attr z = Building_height&lt;BR /&gt;Lot --&amp;gt; Shape extrude(z)&lt;BR /&gt;&lt;BR /&gt;Do I need to define the shapefile in the rule code?&lt;BR /&gt;&lt;BR /&gt;Any help will be greatly appreciated&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Mar 2012 08:40:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/extrude-shapefile-according-to-height-attribute/m-p/187862#M2509</guid>
      <dc:creator>AndréCardoso</dc:creator>
      <dc:date>2012-03-01T08:40:31Z</dc:date>
    </item>
    <item>
      <title>Re: Extrude shapefile according to height attribute</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/extrude-shapefile-according-to-height-attribute/m-p/187863#M2510</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;@ Andre&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks for joining me on the support front ! &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;amazing, you're even using the @StartRule decoration !!!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Mar 2012 08:52:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/extrude-shapefile-according-to-height-attribute/m-p/187863#M2510</guid>
      <dc:creator>MatthiasBuehler1</dc:creator>
      <dc:date>2012-03-01T08:52:54Z</dc:date>
    </item>
    <item>
      <title>Re: Extrude shapefile according to height attribute</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/extrude-shapefile-according-to-height-attribute/m-p/187864#M2511</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Great!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you Andre! It worked.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Mar 2012 03:28:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/extrude-shapefile-according-to-height-attribute/m-p/187864#M2511</guid>
      <dc:creator>CarlBester</dc:creator>
      <dc:date>2012-03-02T03:28:37Z</dc:date>
    </item>
    <item>
      <title>Re: Extrude shapefile according to height attribute</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/extrude-shapefile-according-to-height-attribute/m-p/187865#M2512</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;brilliant, helped a lot, thank you soo much for this reply!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 14 Oct 2012 16:10:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/extrude-shapefile-according-to-height-attribute/m-p/187865#M2512</guid>
      <dc:creator>roberthughes</dc:creator>
      <dc:date>2012-10-14T16:10:08Z</dc:date>
    </item>
    <item>
      <title>Re: Extrude shapefile according to height attribute</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/extrude-shapefile-according-to-height-attribute/m-p/187866#M2513</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've followed these steps and applied them to my buildings but they don't seem to be extruding? &lt;/P&gt;&lt;P&gt;I have attatched a number of screenshots to show what I have done. If anyone could help that would be great. &lt;A href="https://community.esri.com/space/2148"&gt;CityEngine&lt;/A&gt;​ &lt;IMG alt="city.PNG" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/191351_city.PNG" style="width: 620px; height: 529px;" /&gt;&lt;IMG alt="extr_code.PNG" class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/191352_extr_code.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Mar 2016 15:54:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/extrude-shapefile-according-to-height-attribute/m-p/187866#M2513</guid>
      <dc:creator>AmberKenyon</dc:creator>
      <dc:date>2016-03-17T15:54:50Z</dc:date>
    </item>
    <item>
      <title>Re: Extrude shapefile according to height attribute</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/extrude-shapefile-according-to-height-attribute/m-p/187867#M2514</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Seems fine, are you sure you didn't turn off the models? It's the black house icon on the viewport (not shown in the screenshot &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Mar 2016 17:37:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/extrude-shapefile-according-to-height-attribute/m-p/187867#M2514</guid>
      <dc:creator>LR</dc:creator>
      <dc:date>2016-03-18T17:37:06Z</dc:date>
    </item>
    <item>
      <title>Re: Extrude shapefile according to height attribute</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/extrude-shapefile-according-to-height-attribute/m-p/187868#M2515</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No its definitely selected and still not working!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Mar 2016 13:38:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/extrude-shapefile-according-to-height-attribute/m-p/187868#M2515</guid>
      <dc:creator>AmberKenyon</dc:creator>
      <dc:date>2016-03-31T13:38:55Z</dc:date>
    </item>
    <item>
      <title>Re: Extrude shapefile according to height attribute</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/extrude-shapefile-according-to-height-attribute/m-p/187869#M2516</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;BR /&gt;tried to use this method to make geometry form GIS data but failed. Looks like the problem is that imported data has HEIGHT attribute with STR type. &lt;BR /&gt;And connection editor does not recognize it. If I create similar attribute with FLOAT type everything works nice. &lt;BR /&gt;Can somebody make a suggestion on how to get over this problem please.&lt;BR /&gt;Tried to reimport data. Not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's the screen of what I'm talking about: &lt;A href="http://c2n.me/3wkH3PD" title="http://c2n.me/3wkH3PD"&gt;Attribute Connection Editor&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Visual difference between FLOAT and STR atrributes is that STR does not have slider.&lt;BR /&gt;Would really appreciate some help. Creating all new attributes for every shape is not a solution(&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Mar 2016 17:35:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/extrude-shapefile-according-to-height-attribute/m-p/187869#M2516</guid>
      <dc:creator>valeriisendetskyi</dc:creator>
      <dc:date>2016-03-31T17:35:43Z</dc:date>
    </item>
    <item>
      <title>Re: Extrude shapefile according to height attribute</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/extrude-shapefile-according-to-height-attribute/m-p/187870#M2517</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Convert it to float:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;attr HEIGHT = ""
Lot --&amp;gt;
&amp;nbsp; extrude(float(HEIGHT))&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to use a slider to adjust the height afterwards you can do this:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;@Hidden #optional
attr HEIGHT = ""
attr myHEIGHT = float(HEIGHT)
Lot --&amp;gt;
&amp;nbsp; extrude(myHEIGHT)&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 09:29:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/extrude-shapefile-according-to-height-attribute/m-p/187870#M2517</guid>
      <dc:creator>LR</dc:creator>
      <dc:date>2021-12-11T09:29:53Z</dc:date>
    </item>
    <item>
      <title>Re: Extrude shapefile according to height attribute</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/extrude-shapefile-according-to-height-attribute/m-p/187871#M2518</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanx for reply.&lt;BR /&gt;But it doesn't want to take it either. &lt;BR /&gt;I've reloaded the rule, but nothing changed.&lt;BR /&gt;Would have been cool to convert attribute permanently. As a separate action. But I'm not good enough in CE to figure it ou&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proof: &lt;A href="http://c2n.me/3wliawk" title="http://c2n.me/3wliawk"&gt;Attribute Connection Editor&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Mar 2016 21:52:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/extrude-shapefile-according-to-height-attribute/m-p/187871#M2518</guid>
      <dc:creator>valeriisendetskyi</dc:creator>
      <dc:date>2016-03-31T21:52:58Z</dc:date>
    </item>
    <item>
      <title>Re: Extrude shapefile according to height attribute</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/extrude-shapefile-according-to-height-attribute/m-p/187872#M2519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No idea then. Try making a new project, or maybe you can upload some sample data?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Mar 2016 21:55:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/extrude-shapefile-according-to-height-attribute/m-p/187872#M2519</guid>
      <dc:creator>LR</dc:creator>
      <dc:date>2016-03-31T21:55:40Z</dc:date>
    </item>
    <item>
      <title>Re: Extrude shapefile according to height attribute</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/extrude-shapefile-according-to-height-attribute/m-p/187873#M2520</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have to define it properly in the rule too, i. e. height ="", not height = 0, because then the rule assumes it's a float and won't connect to your str object attribute.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Mar 2016 22:14:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/extrude-shapefile-according-to-height-attribute/m-p/187873#M2520</guid>
      <dc:creator>LR</dc:creator>
      <dc:date>2016-03-31T22:14:22Z</dc:date>
    </item>
    <item>
      <title>Re: Extrude shapefile according to height attribute</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/extrude-shapefile-according-to-height-attribute/m-p/187874#M2521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanx a lot! Now it works perfectly)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Apr 2016 07:56:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/extrude-shapefile-according-to-height-attribute/m-p/187874#M2521</guid>
      <dc:creator>valeriisendetskyi</dc:creator>
      <dc:date>2016-04-01T07:56:47Z</dc:date>
    </item>
  </channel>
</rss>

