<?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 import rules  in ArcGIS CityEngine Questions</title>
    <link>https://community.esri.com/t5/arcgis-cityengine-questions/import-rules/m-p/125970#M1714</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;I'm&amp;nbsp;working at a project to modeling a city buildings, my estimated goal is to model each building with its real facade using the facade wizard and I'm doing well so far,&amp;nbsp; i'm&amp;nbsp;assuming that i can&amp;nbsp;&amp;nbsp; facade each floor by using the&amp;nbsp; &amp;nbsp;same procedure but i don't now how&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my rule is:&amp;nbsp;&lt;BR /&gt;import gen_Facade_AdvancedFacade :"/شارع السهل/rules/gen_Facade_goolge2_cropped.cga"&lt;BR /&gt;import gen_Facade_AdvancedFacade1 :"/شارع السهل/rules/gen_Facade_IMG_3451_cropped.cga"&lt;BR /&gt;import gen_Facade_AdvancedFacade2 :"/شارع السهل/rules/gen_Facade_السهل 34 ب_cropped.cga"&lt;BR /&gt;import gen_Facade_AdvancedFacade3 :"/شارع السهل/rules/gen_Facade_السهل34 ج_cropped.cga"&lt;BR /&gt;import gen_Facade_AdvancedFacade4 :"/شارع السهل/rules/gen_Facade_السهل 34 د_cropped.cga"&lt;BR /&gt;import gen_Facade_AdvancedFacade5 :"/شارع السهل/rules/gen_Facade_السهل 34 ه_cropped.cga"&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;import Roof_Textures:"/ESRI.lib/rules/Roofs/Roof_Textures.cga"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* Attributes *************************************/&lt;/P&gt;&lt;P&gt;attr Roof_Ht =2&lt;BR /&gt;attr height = 24&lt;BR /&gt;attr groundfloor_height = 5.5&lt;BR /&gt;attr floor_height = 4.5&lt;/P&gt;&lt;P&gt;roof_tex = "roofs/roof.tif"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@Order(5) @Range("flat","shed","pyramid","gable","hip","half-hip","gablet","gambrel","mansard","gambrel-flat","mansard-flat","vault","dome","saltbox","butterfly")&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;attr Roof_Form= "flat"&lt;BR /&gt;@Order(1) @Range("realistic with facade textures","schematic facades","solid color")&lt;BR /&gt;attr Representation = "realistic with facade textures"&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;#Function###&lt;BR /&gt;getFlatRoofTexture = fileRandom("Roofs/Flat/flat*.jpg")&lt;BR /&gt;getSlopedRoofTexture = fileRandom("Roofs/Sloped/ceramic*.jpg")&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;/* Initial Shape starting rule *************/&lt;/P&gt;&lt;P&gt;# extrude the lot to building height&lt;BR /&gt;@StartRule&lt;BR /&gt;Lot --&amp;gt; extrude(height) Building&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Building --&amp;gt; comp(f) {0:Base|1:Roof|2:AA|3:BB|4:CC|5:DD|6:EE|7:FF|8:GG|9=HH|10=II|11=JJ|12=KK|13=LL|14=MM|15=NN|16=OO|17=PP|18=QQ|19:RR |20:SS|21:TT| 22:UU|23:VV|24:WW|25:XX|26:YY|27:ZZ|28:AB|29:AC|30:AD|31:AE}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BB --&amp;gt; &lt;BR /&gt; split(y){ groundfloor_height : Floor(split.index) // Groundfloor&lt;BR /&gt; | floor_height : Floor(split.index) // First Floor &lt;BR /&gt; | floor_height : Floor(split.index) // Second Floor&lt;BR /&gt; | {~floor_height : Floor(split.index)}* // Mid Floors&lt;BR /&gt; | floor_height : Floor(999) // Top Floor, indexed with 999&lt;BR /&gt; | 0.5 : s('1,'1,0.3) LedgeAsset} // The top ledge just below the roof&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now is it possible to insert the facade generating code&amp;nbsp;with the split function like the one bellow:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;BB --&amp;gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;comp(f) { 2 :gen_Facade_AdvancedFacade3.Facade}&lt;BR /&gt;&lt;SPAN&gt;split(y){ groundfloor_height : Floor(split.index) // Groundfloor&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;| floor_height : Floor(split.index) // First Floor&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;| floor_height : Floor(split.index) // Second Floor&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;| {~floor_height : Floor(split.index)}* // Mid Floors&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;| floor_height : Floor(999) // Top Floor, indexed with 999&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;| 0.5 : s('1,'1,0.3) LedgeAsset} // The top ledge just below the roof&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;or i have&amp;nbsp;to separate&amp;nbsp; each function in a separate rule then import the rules and mash them together!&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;i"m just confused, i read&amp;nbsp;the following questions&amp;nbsp;in the forum:-&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;cga facade parts&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt; why is my imported rule file not working&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;importing rules from Other CGA files&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;and still have no clue,can you please help me to start on the right way&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;H1 style="background-color: #ffffff; border: 0px; font-weight: 200; font-size: 2rem;"&gt;&lt;/H1&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Oct 2019 11:32:38 GMT</pubDate>
    <dc:creator>BilalMustafa</dc:creator>
    <dc:date>2019-10-03T11:32:38Z</dc:date>
    <item>
      <title>import rules</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/import-rules/m-p/125970#M1714</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;I'm&amp;nbsp;working at a project to modeling a city buildings, my estimated goal is to model each building with its real facade using the facade wizard and I'm doing well so far,&amp;nbsp; i'm&amp;nbsp;assuming that i can&amp;nbsp;&amp;nbsp; facade each floor by using the&amp;nbsp; &amp;nbsp;same procedure but i don't now how&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my rule is:&amp;nbsp;&lt;BR /&gt;import gen_Facade_AdvancedFacade :"/شارع السهل/rules/gen_Facade_goolge2_cropped.cga"&lt;BR /&gt;import gen_Facade_AdvancedFacade1 :"/شارع السهل/rules/gen_Facade_IMG_3451_cropped.cga"&lt;BR /&gt;import gen_Facade_AdvancedFacade2 :"/شارع السهل/rules/gen_Facade_السهل 34 ب_cropped.cga"&lt;BR /&gt;import gen_Facade_AdvancedFacade3 :"/شارع السهل/rules/gen_Facade_السهل34 ج_cropped.cga"&lt;BR /&gt;import gen_Facade_AdvancedFacade4 :"/شارع السهل/rules/gen_Facade_السهل 34 د_cropped.cga"&lt;BR /&gt;import gen_Facade_AdvancedFacade5 :"/شارع السهل/rules/gen_Facade_السهل 34 ه_cropped.cga"&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;import Roof_Textures:"/ESRI.lib/rules/Roofs/Roof_Textures.cga"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* Attributes *************************************/&lt;/P&gt;&lt;P&gt;attr Roof_Ht =2&lt;BR /&gt;attr height = 24&lt;BR /&gt;attr groundfloor_height = 5.5&lt;BR /&gt;attr floor_height = 4.5&lt;/P&gt;&lt;P&gt;roof_tex = "roofs/roof.tif"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@Order(5) @Range("flat","shed","pyramid","gable","hip","half-hip","gablet","gambrel","mansard","gambrel-flat","mansard-flat","vault","dome","saltbox","butterfly")&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;attr Roof_Form= "flat"&lt;BR /&gt;@Order(1) @Range("realistic with facade textures","schematic facades","solid color")&lt;BR /&gt;attr Representation = "realistic with facade textures"&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;#Function###&lt;BR /&gt;getFlatRoofTexture = fileRandom("Roofs/Flat/flat*.jpg")&lt;BR /&gt;getSlopedRoofTexture = fileRandom("Roofs/Sloped/ceramic*.jpg")&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;/* Initial Shape starting rule *************/&lt;/P&gt;&lt;P&gt;# extrude the lot to building height&lt;BR /&gt;@StartRule&lt;BR /&gt;Lot --&amp;gt; extrude(height) Building&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Building --&amp;gt; comp(f) {0:Base|1:Roof|2:AA|3:BB|4:CC|5:DD|6:EE|7:FF|8:GG|9=HH|10=II|11=JJ|12=KK|13=LL|14=MM|15=NN|16=OO|17=PP|18=QQ|19:RR |20:SS|21:TT| 22:UU|23:VV|24:WW|25:XX|26:YY|27:ZZ|28:AB|29:AC|30:AD|31:AE}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BB --&amp;gt; &lt;BR /&gt; split(y){ groundfloor_height : Floor(split.index) // Groundfloor&lt;BR /&gt; | floor_height : Floor(split.index) // First Floor &lt;BR /&gt; | floor_height : Floor(split.index) // Second Floor&lt;BR /&gt; | {~floor_height : Floor(split.index)}* // Mid Floors&lt;BR /&gt; | floor_height : Floor(999) // Top Floor, indexed with 999&lt;BR /&gt; | 0.5 : s('1,'1,0.3) LedgeAsset} // The top ledge just below the roof&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now is it possible to insert the facade generating code&amp;nbsp;with the split function like the one bellow:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;BB --&amp;gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;comp(f) { 2 :gen_Facade_AdvancedFacade3.Facade}&lt;BR /&gt;&lt;SPAN&gt;split(y){ groundfloor_height : Floor(split.index) // Groundfloor&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;| floor_height : Floor(split.index) // First Floor&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;| floor_height : Floor(split.index) // Second Floor&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;| {~floor_height : Floor(split.index)}* // Mid Floors&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;| floor_height : Floor(999) // Top Floor, indexed with 999&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;| 0.5 : s('1,'1,0.3) LedgeAsset} // The top ledge just below the roof&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;or i have&amp;nbsp;to separate&amp;nbsp; each function in a separate rule then import the rules and mash them together!&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;i"m just confused, i read&amp;nbsp;the following questions&amp;nbsp;in the forum:-&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;cga facade parts&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt; why is my imported rule file not working&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;importing rules from Other CGA files&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;and still have no clue,can you please help me to start on the right way&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;H1 style="background-color: #ffffff; border: 0px; font-weight: 200; font-size: 2rem;"&gt;&lt;/H1&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Oct 2019 11:32:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/import-rules/m-p/125970#M1714</guid>
      <dc:creator>BilalMustafa</dc:creator>
      <dc:date>2019-10-03T11:32:38Z</dc:date>
    </item>
    <item>
      <title>Re: import rules</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/import-rules/m-p/125971#M1715</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Thank you Guys, I fixed my issue&lt;SPAN&gt;&amp;nbsp;&lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="" style="background: url(&amp;quot; border: 0px;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Oct 2019 08:41:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/import-rules/m-p/125971#M1715</guid>
      <dc:creator>BilalMustafa</dc:creator>
      <dc:date>2019-10-09T08:41:46Z</dc:date>
    </item>
  </channel>
</rss>

