<?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 assign different roof materials type in CE? in ArcGIS CityEngine Questions</title>
    <link>https://community.esri.com/t5/arcgis-cityengine-questions/how-can-i-assign-different-roof-materials-type-in/m-p/605652#M8112</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;the @Range() and @Group() annotations belong to the attribute.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;the comp(f) code fragment is at the complete wrong place there.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ok ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;m.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Sep 2013 11:46:15 GMT</pubDate>
    <dc:creator>MatthiasBuehler1</dc:creator>
    <dc:date>2013-09-24T11:46:15Z</dc:date>
    <item>
      <title>How can I assign different roof materials type in CE?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/how-can-i-assign-different-roof-materials-type-in/m-p/605649#M8109</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My name is Leilei and I'm working on generating city 3D models in CE based on property parcel files. I have data showing different roof materials of each building. I was wondering, is it possible to generate the roof according to the material field in the parcel? (in the data set, different numbers represent different roof materials. Such as, 1 = tiles; 2=wood...) &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Sep 2013 17:50:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/how-can-i-assign-different-roof-materials-type-in/m-p/605649#M8109</guid>
      <dc:creator>LeileiDuan1</dc:creator>
      <dc:date>2013-09-09T17:50:25Z</dc:date>
    </item>
    <item>
      <title>Re: How can I assign different roof materials type in CE?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/how-can-i-assign-different-roof-materials-type-in/m-p/605650#M8110</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;BR /&gt;&lt;SPAN&gt;You can learn how to do this in the video tutorials 1 - 6.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;A href="http://forums.arcgis.com/threads/64843-CityEngine-Collection-RESOURCES-FAQ-HELP"&gt;http://forums.arcgis.com/threads/64843-CityEngine-Collection-RESOURCES-FAQ-HELP&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, do this mini tuto here :&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://forums.arcgis.com/threads/53008-GIS-Data-Mini-Tutorial-Building-Height-and-Floor-Splits"&gt;http://forums.arcgis.com/threads/53008-GIS-Data-Mini-Tutorial-Building-Height-and-Floor-Splits&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ok ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Matt&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Sep 2013 12:20:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/how-can-i-assign-different-roof-materials-type-in/m-p/605650#M8110</guid>
      <dc:creator>MatthiasBuehler1</dc:creator>
      <dc:date>2013-09-10T12:20:05Z</dc:date>
    </item>
    <item>
      <title>Re: How can I assign different roof materials type in CE?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/how-can-i-assign-different-roof-materials-type-in/m-p/605651#M8111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;You can learn how to do this in the video tutorials 1 - 6.&lt;BR /&gt;(&lt;A href="http://forums.arcgis.com/threads/64843-CityEngine-Collection-RESOURCES-FAQ-HELP" rel="nofollow noopener noreferrer" target="_blank"&gt;http://forums.arcgis.com/threads/64843-CityEngine-Collection-RESOURCES-FAQ-HELP&lt;/A&gt;)&lt;BR /&gt;&lt;BR /&gt;Also, do this mini tuto here :&lt;BR /&gt;&lt;A href="http://forums.arcgis.com/threads/53008-GIS-Data-Mini-Tutorial-Building-Height-and-Floor-Splits" rel="nofollow noopener noreferrer" target="_blank"&gt;http://forums.arcgis.com/threads/53008-GIS-Data-Mini-Tutorial-Building-Height-and-Floor-Splits&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Ok ?&lt;BR /&gt;&lt;BR /&gt;Matt&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks Matt!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I was able to generate different roof materials. But when I was working on the wall facade, I wanted to assign different textures randomly to the buildings. The code I used is as follows:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;@Group ("WALL FACADE")
@Range ("random", "Facade1", "Facade2", "Facade3", "Facade4", "Facade5", "Facade6")
 comp(f){top: Roof | side : Wall_Facade} 
attr Wall_Facade = "random"
const Function_Wall_Facade = #fileRandom(texture("images/Bldg_Facade2.jpg"))
 case Wall_Facade == "random":
&amp;nbsp; 10% : "Facade1"
&amp;nbsp; 10%&amp;nbsp; : "Facade2"
&amp;nbsp; 20%&amp;nbsp; : "Facade3"
&amp;nbsp; 20%&amp;nbsp; : "Facade4"
&amp;nbsp; 20%&amp;nbsp; : "Facade5"
&amp;nbsp; 20%&amp;nbsp; : "Facade6"
 else : Wall_Facade
&amp;nbsp; 
Facade1--&amp;gt;
&amp;nbsp; setupProjection(0, scope.xy, scope.sx, scope.sy)
&amp;nbsp; projectUV(0) 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; texture("images/Bldg_Facade1_cropped.jpg")

Facade2--&amp;gt;
.........
&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;There is always an error "Mismatched Token (comp)"&amp;nbsp; at the code "comp(f){top: Roof | side : Wall_Facade}" . I am not sure what is wrong with these code. I was wondering, could you help me to look at it?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks a lot!!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Leilei&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 01:57:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/how-can-i-assign-different-roof-materials-type-in/m-p/605651#M8111</guid>
      <dc:creator>LeileiDuan1</dc:creator>
      <dc:date>2021-12-12T01:57:56Z</dc:date>
    </item>
    <item>
      <title>Re: How can I assign different roof materials type in CE?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/how-can-i-assign-different-roof-materials-type-in/m-p/605652#M8112</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;the @Range() and @Group() annotations belong to the attribute.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;the comp(f) code fragment is at the complete wrong place there.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ok ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;m.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Sep 2013 11:46:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/how-can-i-assign-different-roof-materials-type-in/m-p/605652#M8112</guid>
      <dc:creator>MatthiasBuehler1</dc:creator>
      <dc:date>2013-09-24T11:46:15Z</dc:date>
    </item>
  </channel>
</rss>

