How can I generate buildings randomly?

347
1
03-17-2019 09:47 AM
Halil_İbrahimŞenol
New Contributor II

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? 

0 Kudos
1 Reply
CherylLau
Esri Regular Contributor

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
‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍
0 Kudos