Hello!
I'm struggling for a while trying to do the following steps: i want to A. comp each facade (i'm good with it) then,
B. split each facade (i'm also good with it) then,
C. use the facade wizard to model the ground floor, and the upper floor "when needed and write one rule to have (the comp & split & the facade wizard output together)
** i read about the import rules and i have a good result with the comp and the split process.
my Q is: How can I edit the rule to be able to use the facade wizard output with my "facade split parts" (Ground floor & other floors)
1.this rule is for using the facade wizard output to "texture" the facade
<SPAN class="operator token">/</SPAN><SPAN class="operator token">**</SPAN>
<SPAN class="operator token">*</SPAN> File<SPAN class="punctuation token">:</SPAN> Test_Facade<SPAN class="punctuation token">.</SPAN>cga
<SPAN class="operator token">*</SPAN> Created<SPAN class="punctuation token">:</SPAN> <SPAN class="number token">21</SPAN> Sep <SPAN class="number token">2019</SPAN> <SPAN class="number token">10</SPAN><SPAN class="punctuation token">:</SPAN><SPAN class="number token">13</SPAN><SPAN class="punctuation token">:</SPAN><SPAN class="number token">07</SPAN> GMT
<SPAN class="operator token">*</SPAN> Author<SPAN class="punctuation token">:</SPAN> bilald
<SPAN class="operator token">*</SPAN><SPAN class="operator token">/</SPAN>
version <SPAN class="string token">"2018.1"</SPAN>
<SPAN class="keyword token">import</SPAN> gen_Facade_AdvancedFacade <SPAN class="punctuation token">:</SPAN><SPAN class="string token">"/شارع السهل/rules/gen_Facade_goolge2_cropped.cga"</SPAN>
<SPAN class="keyword token">import</SPAN> gen_Facade_AdvancedFacade1 <SPAN class="punctuation token">:</SPAN><SPAN class="string token">"/شارع السهل/rules/gen_Facade_IMG_3451_cropped.cga"</SPAN>
<SPAN class="keyword token">import</SPAN> gen_Facade_AdvancedFacade2 <SPAN class="punctuation token">:</SPAN><SPAN class="string token">"/شارع السهل/rules/gen_Facade_السهل 34ب_cropped.cga"</SPAN>
<SPAN class="keyword token">import</SPAN> gen_Facade_AdvancedFacade3 <SPAN class="punctuation token">:</SPAN><SPAN class="string token">"/شارع السهل/rules/gen_Facade_السهل34 ج_cropped.cga"</SPAN>
<SPAN class="keyword token">import</SPAN> gen_Facade_AdvancedFacade4 <SPAN class="punctuation token">:</SPAN><SPAN class="string token">"/شارع السهل/rules/gen_Facade_السهل 34د_cropped.cga"</SPAN>
<SPAN class="keyword token">import</SPAN> gen_Facade_AdvancedFacade5 <SPAN class="punctuation token">:</SPAN><SPAN class="string token">"/شارع السهل/rules/gen_Facade_السهل 34ه_cropped.cga"</SPAN>
<SPAN class="comment token">#attributes#</SPAN>
attr height <SPAN class="operator token">=</SPAN> <SPAN class="number token">11</SPAN>
attr Roof_Ht <SPAN class="operator token">=</SPAN><SPAN class="number token">2</SPAN>
<SPAN class="comment token">#Rule#</SPAN>
lot<SPAN class="operator token">-</SPAN><SPAN class="operator token">-</SPAN><SPAN class="operator token">></SPAN>
extrude <SPAN class="punctuation token">(</SPAN>height<SPAN class="punctuation token">)</SPAN>
comp<SPAN class="punctuation token">(</SPAN>f<SPAN class="punctuation token">)</SPAN> <SPAN class="punctuation token">{</SPAN><SPAN class="number token">0</SPAN><SPAN class="punctuation token">:</SPAN>Base<SPAN class="operator token">|</SPAN><SPAN class="number token">1</SPAN><SPAN class="punctuation token">:</SPAN>Roof<SPAN class="operator token">|</SPAN><SPAN class="number token">2</SPAN><SPAN class="punctuation token">:</SPAN>AA<SPAN class="operator token">|</SPAN><SPAN class="number token">3</SPAN><SPAN class="punctuation token">:</SPAN>BB<SPAN class="operator token">|</SPAN><SPAN class="number token">4</SPAN><SPAN class="punctuation token">:</SPAN>CC<SPAN class="operator token">|</SPAN><SPAN class="number token">5</SPAN><SPAN class="punctuation token">:</SPAN>DD<SPAN class="operator token">|</SPAN><SPAN class="number token">6</SPAN><SPAN class="punctuation token">:</SPAN>EE<SPAN class="operator token">|</SPAN><SPAN class="number token">7</SPAN><SPAN class="punctuation token">:</SPAN>FF<SPAN class="operator token">|</SPAN><SPAN class="number token">8</SPAN><SPAN class="punctuation token">:</SPAN>GG<SPAN class="operator token">|</SPAN><SPAN class="number token">9</SPAN><SPAN class="punctuation token">:</SPAN>HH<SPAN class="operator token">|</SPAN><SPAN class="number token">10</SPAN><SPAN class="punctuation token">:</SPAN>II<SPAN class="operator token">|</SPAN><SPAN class="number token">11</SPAN><SPAN class="punctuation token">:</SPAN>JJ<SPAN class="operator token">|</SPAN><SPAN class="number token">12</SPAN><SPAN class="punctuation token">:</SPAN>KK<SPAN class="operator token">|</SPAN><SPAN class="number token">13</SPAN><SPAN class="punctuation token">:</SPAN>LL<SPAN class="operator token">|</SPAN><SPAN class="number token">14</SPAN><SPAN class="punctuation token">:</SPAN>MM<SPAN class="operator token">|</SPAN><SPAN class="number token">15</SPAN><SPAN class="punctuation token">:</SPAN>NN<SPAN class="operator token">|</SPAN><SPAN class="number token">16</SPAN><SPAN class="punctuation token">:</SPAN>OO<SPAN class="operator token">|</SPAN><SPAN class="number token">17</SPAN><SPAN class="punctuation token">:</SPAN>PP<SPAN class="operator token">|</SPAN><SPAN class="number token">18</SPAN><SPAN class="punctuation token">:</SPAN>QQ<SPAN class="operator token">|</SPAN><SPAN class="number token">19</SPAN><SPAN class="punctuation token">:</SPAN>RR<SPAN class="operator token">|</SPAN><SPAN class="number token">20</SPAN><SPAN class="punctuation token">:</SPAN>SS<SPAN class="operator token">|</SPAN><SPAN class="number token">21</SPAN><SPAN class="punctuation token">:</SPAN>TT<SPAN class="operator token">|</SPAN><SPAN class="number token">22</SPAN><SPAN class="punctuation token">:</SPAN>UU<SPAN class="operator token">|</SPAN><SPAN class="number token">23</SPAN><SPAN class="punctuation token">:</SPAN>VV<SPAN class="operator token">|</SPAN><SPAN class="number token">24</SPAN><SPAN class="punctuation token">:</SPAN>WW<SPAN class="operator token">|</SPAN><SPAN class="number token">25</SPAN><SPAN class="punctuation token">:</SPAN>xyz<SPAN class="operator token">|</SPAN><SPAN class="number token">26</SPAN><SPAN class="punctuation token">:</SPAN>YY<SPAN class="operator token">|</SPAN><SPAN class="number token">27</SPAN><SPAN class="punctuation token">:</SPAN>ZZ<SPAN class="operator token">|</SPAN><SPAN class="number token">28</SPAN><SPAN class="punctuation token">:</SPAN>AB<SPAN class="operator token">|</SPAN><SPAN class="number token">29</SPAN><SPAN class="punctuation token">:</SPAN>A<SPAN class="operator token">|</SPAN><SPAN class="number token">30</SPAN><SPAN class="punctuation token">:</SPAN>AD<SPAN class="operator token">|</SPAN><SPAN class="number token">31</SPAN><SPAN class="punctuation token">:</SPAN>AE<SPAN class="punctuation token">}</SPAN>
BB<SPAN class="operator token">-</SPAN><SPAN class="operator token">-</SPAN><SPAN class="operator token">></SPAN> comp<SPAN class="punctuation token">(</SPAN>f<SPAN class="punctuation token">)</SPAN> <SPAN class="punctuation token">{</SPAN> <SPAN class="number token">2</SPAN> <SPAN class="punctuation token">:</SPAN>gen_Facade_AdvancedFacade3<SPAN class="punctuation token">.</SPAN>Facade<SPAN class="punctuation token">}</SPAN>
CC<SPAN class="operator token">-</SPAN><SPAN class="operator token">-</SPAN><SPAN class="operator token">></SPAN>comp<SPAN class="punctuation token">(</SPAN>f<SPAN class="punctuation token">)</SPAN> <SPAN class="punctuation token">{</SPAN> <SPAN class="number token">2</SPAN> <SPAN class="punctuation token">:</SPAN>gen_Facade_AdvancedFacade2<SPAN class="punctuation token">.</SPAN>Facade<SPAN class="punctuation token">}</SPAN>
EE<SPAN class="operator token">-</SPAN><SPAN class="operator token">-</SPAN><SPAN class="operator token">></SPAN>comp<SPAN class="punctuation token">(</SPAN>f<SPAN class="punctuation token">)</SPAN> <SPAN class="punctuation token">{</SPAN> <SPAN class="number token">2</SPAN> <SPAN class="punctuation token">:</SPAN>gen_Facade_AdvancedFacade<SPAN class="punctuation token">.</SPAN>Facade<SPAN class="punctuation token">}</SPAN>
FF<SPAN class="operator token">-</SPAN><SPAN class="operator token">-</SPAN><SPAN class="operator token">></SPAN>comp<SPAN class="punctuation token">(</SPAN>f<SPAN class="punctuation token">)</SPAN> <SPAN class="punctuation token">{</SPAN> <SPAN class="number token">2</SPAN> <SPAN class="punctuation token">:</SPAN>gen_Facade_AdvancedFacade4<SPAN class="punctuation token">.</SPAN>Facade<SPAN class="punctuation token">}</SPAN>
DD<SPAN class="operator token">-</SPAN><SPAN class="operator token">-</SPAN><SPAN class="operator token">></SPAN>comp<SPAN class="punctuation token">(</SPAN>f<SPAN class="punctuation token">)</SPAN> <SPAN class="punctuation token">{</SPAN> <SPAN class="number token">2</SPAN> <SPAN class="punctuation token">:</SPAN>gen_Facade_AdvancedFacade1<SPAN class="punctuation token">.</SPAN>Facade<SPAN class="punctuation token">}</SPAN>
GG<SPAN class="operator token">-</SPAN><SPAN class="operator token">-</SPAN><SPAN class="operator token">></SPAN>comp<SPAN class="punctuation token">(</SPAN>f<SPAN class="punctuation token">)</SPAN> <SPAN class="punctuation token">{</SPAN> <SPAN class="number token">2</SPAN> <SPAN class="punctuation token">:</SPAN>gen_Facade_AdvancedFacade5<SPAN class="punctuation token">.</SPAN>Facade<SPAN class="punctuation token">}</SPAN>
<SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN></SPAN>2. this is the split rule for facade
<SPAN class="operator token">/</SPAN><SPAN class="operator token">**</SPAN>
<SPAN class="operator token">*</SPAN> File<SPAN class="punctuation token">:</SPAN> Test_Comp_Splitfacade<SPAN class="punctuation token">.</SPAN>cga
<SPAN class="operator token">*</SPAN> Created<SPAN class="punctuation token">:</SPAN> <SPAN class="number token">5</SPAN> Oct <SPAN class="number token">2019</SPAN> <SPAN class="number token">07</SPAN><SPAN class="punctuation token">:</SPAN><SPAN class="number token">12</SPAN><SPAN class="punctuation token">:</SPAN><SPAN class="number token">04</SPAN> GMT
<SPAN class="operator token">*</SPAN> Author<SPAN class="punctuation token">:</SPAN> Bilal Mustafa
<SPAN class="operator token">*</SPAN><SPAN class="operator token">/</SPAN>
version <SPAN class="string token">"2018.1"</SPAN>
attr height <SPAN class="operator token">=</SPAN> <SPAN class="number token">10</SPAN>
attr groundfloor_height<SPAN class="operator token">=</SPAN><SPAN class="number token">4</SPAN>
attr floorheight<SPAN class="operator token">=</SPAN><SPAN class="number token">3</SPAN>
Building<SPAN class="operator token">-</SPAN><SPAN class="operator token">-</SPAN><SPAN class="operator token">></SPAN>
extrude<SPAN class="punctuation token">(</SPAN>height<SPAN class="punctuation token">)</SPAN> facade
facade<SPAN class="operator token">-</SPAN><SPAN class="operator token">-</SPAN><SPAN class="operator token">></SPAN>
comp<SPAN class="punctuation token">(</SPAN>f<SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">{</SPAN><SPAN class="number token">4</SPAN><SPAN class="punctuation token">:</SPAN>BB<SPAN class="operator token">|</SPAN><SPAN class="number token">5</SPAN><SPAN class="punctuation token">:</SPAN>CC<SPAN class="punctuation token">}</SPAN>
BB<SPAN class="operator token">-</SPAN><SPAN class="operator token">-</SPAN><SPAN class="operator token">></SPAN>
split<SPAN class="punctuation token">(</SPAN>y<SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">{</SPAN> groundfloor_height <SPAN class="punctuation token">:</SPAN> Floor<SPAN class="punctuation token">(</SPAN>split<SPAN class="punctuation token">.</SPAN>index<SPAN class="punctuation token">)</SPAN> <SPAN class="operator token">//</SPAN> Groundfloor
<SPAN class="operator token">|</SPAN> floorheight <SPAN class="punctuation token">:</SPAN> Floor<SPAN class="punctuation token">(</SPAN>split<SPAN class="punctuation token">.</SPAN>index<SPAN class="punctuation token">)</SPAN> <SPAN class="operator token">//</SPAN> First Floor
<SPAN class="operator token">|</SPAN> floorheight <SPAN class="punctuation token">:</SPAN> Floor<SPAN class="punctuation token">(</SPAN>split<SPAN class="punctuation token">.</SPAN>index<SPAN class="punctuation token">)</SPAN> <SPAN class="operator token">//</SPAN> Second Floor
<SPAN class="operator token">|</SPAN> <SPAN class="punctuation token">{</SPAN><SPAN class="operator token">~</SPAN>floorheight <SPAN class="punctuation token">:</SPAN> Floor<SPAN class="punctuation token">(</SPAN>split<SPAN class="punctuation token">.</SPAN>index<SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">}</SPAN><SPAN class="operator token">*</SPAN> <SPAN class="operator token">//</SPAN> Mid Floors
<SPAN class="operator token">|</SPAN> floorheight <SPAN class="punctuation token">:</SPAN> Floor<SPAN class="punctuation token">(</SPAN><SPAN class="number token">999</SPAN><SPAN class="punctuation token">)</SPAN> <SPAN class="operator token">//</SPAN> Top Floor<SPAN class="punctuation token">,</SPAN> indexed <SPAN class="keyword token">with</SPAN> <SPAN class="number token">999</SPAN>
<SPAN class="operator token">|</SPAN> <SPAN class="number token">0.5</SPAN> <SPAN class="punctuation token">:</SPAN> s<SPAN class="punctuation token">(</SPAN><SPAN class="string token">'1,'</SPAN><SPAN class="number token">1</SPAN><SPAN class="punctuation token">,</SPAN><SPAN class="number token">0.3</SPAN><SPAN class="punctuation token">)</SPAN> LedgeAsset<SPAN class="punctuation token">}</SPAN> <SPAN class="operator token">//</SPAN> The top ledge just below the roof
<SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN></SPAN>3. this rule to import the "facade comp" and the split together using the import function
<SPAN class="operator token">/</SPAN><SPAN class="operator token">**</SPAN>
<SPAN class="operator token">*</SPAN> File<SPAN class="punctuation token">:</SPAN> import_rules_test<SPAN class="punctuation token">.</SPAN>cga
<SPAN class="operator token">*</SPAN> Created<SPAN class="punctuation token">:</SPAN> <SPAN class="number token">5</SPAN> Oct <SPAN class="number token">2019</SPAN> <SPAN class="number token">07</SPAN><SPAN class="punctuation token">:</SPAN><SPAN class="number token">28</SPAN><SPAN class="punctuation token">:</SPAN><SPAN class="number token">32</SPAN> GMT
<SPAN class="operator token">*</SPAN> Author<SPAN class="punctuation token">:</SPAN> Bilal Mustafa
<SPAN class="operator token">*</SPAN><SPAN class="operator token">/</SPAN>
version <SPAN class="string token">"2018.1"</SPAN>
<SPAN class="keyword token">import</SPAN> f1<SPAN class="punctuation token">:</SPAN><SPAN class="string token">"extrude_comp.cga"</SPAN>
<SPAN class="keyword token">import</SPAN> f2<SPAN class="punctuation token">:</SPAN><SPAN class="string token">"split.cga"</SPAN>
attr height<SPAN class="operator token">=</SPAN> <SPAN class="number token">4</SPAN>
facade<SPAN class="operator token">-</SPAN><SPAN class="operator token">-</SPAN><SPAN class="operator token">></SPAN> extrude <SPAN class="punctuation token">(</SPAN>height<SPAN class="punctuation token">)</SPAN>
f1<SPAN class="punctuation token">.</SPAN>facade
<SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN></SPAN>