AnsweredAssumed Answered

Help Please

Question asked by bilalbargouti on Oct 7, 2019
Latest reply on Oct 9, 2019 by bilalbargouti

what to edit in the following code to make the facade picture appear correctly after the split ?

 

/**
* File:    comp_split.cga
* Created: 5 Oct 2019 06:28:38 GMT
* Author:  Bilal Mustafa
*/

version "2018.1"

import gen_Facade_AdvancedFacade3 :"/شارع السهل/rules/gen_Facade_goolge2_cropped.cga"

attr height = 10
attr groundfloor_height=5
attr floor_height=3
Lot --> 
extrude(height) 
comp(f){ 
0: Base | 1: Roof | 2: AA | 3: BB  
| 4: CC  } 
 
AA --> 
split(y){ groundfloor_height    : Floor(split.index)      // Groundfloor
               | floor_height : Floor(split.index)                   // First Floor               
               | floor_height : Floor(split.index)                     // Second Floor
               | {~floor_height : Floor(split.index)}*               // Mid Floors
               | floor_height : Floor(999)                              // Top Floor, indexed with 999
               | 0.5 : s('1,'1,0.3) LedgeAsset}                       // The top ledge just below the roof
            facade
           
            facade-->
           
            comp(f) { 2 :gen_Facade_AdvancedFacade3.Facade}
 
 

Attachments

Outcomes