Hello everyone,
I have some different building models in ".cga". So I want to use these models in a different rule file for using different building models. Does anyone know this problem?
You can import your building rule files into a master file. The master file can then decide which rule to call.
import rule1:"rule1.cga"
import rule2:"rule2.cga"
import rule3:"rule3.cga"
@Enum("type1", "type2", "type3")
attr building_type = "type1"
Lot -->
case building_type=="type1": rule1.Generate
case building_type=="type2": rule2.Generate
else: rule3.Generate