<?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: Buildings to CityEngine in ArcGIS CityEngine Questions</title>
    <link>https://community.esri.com/t5/arcgis-cityengine-questions/buildings-to-cityengine/m-p/428448#M5886</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First, you'll need to import your shapes into CityEngine.&amp;nbsp; Check out this tutorial on importing shapes from different sources:&lt;/P&gt;&lt;P&gt;&lt;A href="http://desktop.arcgis.com/en/cityengine/latest/tutorials/tutorial-5-import-initial-shapes.htm" title="http://desktop.arcgis.com/en/cityengine/latest/tutorials/tutorial-5-import-initial-shapes.htm"&gt;Tutorial 5: Import initial shapes—CityEngine Tutorials | ArcGIS for Desktop&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, to apply rules to the shapes, you'll have to create a cga file with the rules and assign it to the shapes.&amp;nbsp; Using extrude() you can create your building according to the specified height.&amp;nbsp; Then, there are four different roof types you could make: gable, hip, pyramid, or shed.&amp;nbsp; Here is a simple rule:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: monospace;"&gt;attr height = 20&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: monospace;"&gt;attr facade_tex = "myFacadeTexture.png"&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: monospace;"&gt;Lot --&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: monospace;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; extrude(height)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: monospace;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Building&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: monospace;"&gt;Building --&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: monospace;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; comp(f) { side : Facade | top : Roof }&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: monospace;"&gt;Facade --&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: monospace;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; setupProjection(0, scope.xy, '1, '1)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: monospace;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; texture(facade_tex)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: monospace;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; projectUV(0)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: monospace;"&gt;Roof --&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: monospace;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; roofGable(30)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P&gt;Here is a tutorial on CGA (check out the sections "Lot rule", "Building rule", and "Texture the simple building"):&lt;/P&gt;&lt;P&gt;&lt;A href="http://desktop.arcgis.com/en/cityengine/latest/tutorials/tutorial-6-basic-shape-grammar.htm" title="http://desktop.arcgis.com/en/cityengine/latest/tutorials/tutorial-6-basic-shape-grammar.htm"&gt;Tutorial 6: Basic shape grammar—CityEngine Tutorials | ArcGIS for Desktop&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the help page for gable roofs (there are pages for other roof types as well):&lt;/P&gt;&lt;P&gt;&lt;A href="http://cehelp.esri.com/help/topic/com.procedural.cityengine.help/html/cgareference/op_roofGable.html" title="http://cehelp.esri.com/help/topic/com.procedural.cityengine.help/html/cgareference/op_roofGable.html"&gt;roofGable Operation&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, you'll probably want to texture your buildings in the CGA code (rather than using the Texturing Tool in the video), so check out the "Texture the simple building" section in Tutorial 6 or the "Texture the facade" section in Tutorial 7:&lt;/P&gt;&lt;P&gt;&lt;A href="http://desktop.arcgis.com/en/cityengine/latest/tutorials/tutorial-7-facade-modeling.htm" title="http://desktop.arcgis.com/en/cityengine/latest/tutorials/tutorial-7-facade-modeling.htm"&gt;Tutorial 7: Facade modeling—CityEngine Tutorials | ArcGIS for Desktop&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #3d3d3d;"&gt;To link object attributes (on the shape - visible in the Inspector) to rule attributes (in the rule file - also visible in the Inspector), make sure they have the same name.&amp;nbsp; So, if your object attribute is called "height", then use attr height in your rule file.&amp;nbsp; Then, link them through the connection editor in the Inspector (click on arrow icon next to attribute name in Inspector, choose Object Attribute).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 01 Apr 2016 09:45:22 GMT</pubDate>
    <dc:creator>CherylLau</dc:creator>
    <dc:date>2016-04-01T09:45:22Z</dc:date>
    <item>
      <title>Buildings to CityEngine</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/buildings-to-cityengine/m-p/428447#M5885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to bring my cities buildings into cityengine and apply 2 simple rules. &lt;/P&gt;&lt;P&gt;rule 1: building height&lt;/P&gt;&lt;P&gt;rule 2: roof type&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I then want to edit the buildings to change the appearance to be that like the actual building. &lt;/P&gt;&lt;P&gt;Kind of like what was demoed here: &lt;A href="https://www.youtube.com/watch?v=shIplS95nyk" title="https://www.youtube.com/watch?v=shIplS95nyk"&gt;CityEngine Feature: Facade Texturing - YouTube&lt;/A&gt;&amp;nbsp; time 0:30 to&amp;nbsp; 0:42&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think what I am looking for is to create the most realistic model then from there edit each feature. I do not want the feature to change after I edit it. Would what I am looking for be an object? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are there any good tutorials on how to do this? I cannot find anything that is very helpful. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Mar 2016 21:29:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/buildings-to-cityengine/m-p/428447#M5885</guid>
      <dc:creator>RickeyFight</dc:creator>
      <dc:date>2016-03-31T21:29:13Z</dc:date>
    </item>
    <item>
      <title>Re: Buildings to CityEngine</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/buildings-to-cityengine/m-p/428448#M5886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First, you'll need to import your shapes into CityEngine.&amp;nbsp; Check out this tutorial on importing shapes from different sources:&lt;/P&gt;&lt;P&gt;&lt;A href="http://desktop.arcgis.com/en/cityengine/latest/tutorials/tutorial-5-import-initial-shapes.htm" title="http://desktop.arcgis.com/en/cityengine/latest/tutorials/tutorial-5-import-initial-shapes.htm"&gt;Tutorial 5: Import initial shapes—CityEngine Tutorials | ArcGIS for Desktop&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, to apply rules to the shapes, you'll have to create a cga file with the rules and assign it to the shapes.&amp;nbsp; Using extrude() you can create your building according to the specified height.&amp;nbsp; Then, there are four different roof types you could make: gable, hip, pyramid, or shed.&amp;nbsp; Here is a simple rule:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: monospace;"&gt;attr height = 20&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: monospace;"&gt;attr facade_tex = "myFacadeTexture.png"&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: monospace;"&gt;Lot --&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: monospace;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; extrude(height)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: monospace;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Building&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: monospace;"&gt;Building --&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: monospace;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; comp(f) { side : Facade | top : Roof }&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: monospace;"&gt;Facade --&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: monospace;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; setupProjection(0, scope.xy, '1, '1)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: monospace;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; texture(facade_tex)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: monospace;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; projectUV(0)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: monospace;"&gt;Roof --&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: monospace;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; roofGable(30)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P&gt;Here is a tutorial on CGA (check out the sections "Lot rule", "Building rule", and "Texture the simple building"):&lt;/P&gt;&lt;P&gt;&lt;A href="http://desktop.arcgis.com/en/cityengine/latest/tutorials/tutorial-6-basic-shape-grammar.htm" title="http://desktop.arcgis.com/en/cityengine/latest/tutorials/tutorial-6-basic-shape-grammar.htm"&gt;Tutorial 6: Basic shape grammar—CityEngine Tutorials | ArcGIS for Desktop&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the help page for gable roofs (there are pages for other roof types as well):&lt;/P&gt;&lt;P&gt;&lt;A href="http://cehelp.esri.com/help/topic/com.procedural.cityengine.help/html/cgareference/op_roofGable.html" title="http://cehelp.esri.com/help/topic/com.procedural.cityengine.help/html/cgareference/op_roofGable.html"&gt;roofGable Operation&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, you'll probably want to texture your buildings in the CGA code (rather than using the Texturing Tool in the video), so check out the "Texture the simple building" section in Tutorial 6 or the "Texture the facade" section in Tutorial 7:&lt;/P&gt;&lt;P&gt;&lt;A href="http://desktop.arcgis.com/en/cityengine/latest/tutorials/tutorial-7-facade-modeling.htm" title="http://desktop.arcgis.com/en/cityengine/latest/tutorials/tutorial-7-facade-modeling.htm"&gt;Tutorial 7: Facade modeling—CityEngine Tutorials | ArcGIS for Desktop&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #3d3d3d;"&gt;To link object attributes (on the shape - visible in the Inspector) to rule attributes (in the rule file - also visible in the Inspector), make sure they have the same name.&amp;nbsp; So, if your object attribute is called "height", then use attr height in your rule file.&amp;nbsp; Then, link them through the connection editor in the Inspector (click on arrow icon next to attribute name in Inspector, choose Object Attribute).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Apr 2016 09:45:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/buildings-to-cityengine/m-p/428448#M5886</guid>
      <dc:creator>CherylLau</dc:creator>
      <dc:date>2016-04-01T09:45:22Z</dc:date>
    </item>
  </channel>
</rss>

