首页/ CityEngine/ 用地分类写法与外部规则引入方法

用地分类写法与外部规则引入方法

作者:佚名 2020-01-04 19:23:39 CityEngine

微信截图_20200104192308.png

#用地类型


@Group("用地类型",0)

@Range("民用","商用","绿地")

@Description("用地选择")

attr LandUse =  "民用" 


import Greenspace:"rules/Greenspace.cga"

import Civilbuilding:"rules/Civilbuilding.cga"

import Commercial:"rules/Commercial.cga"


@StartRule


Lot-->

   case LandUse == "民用" : Civilbuilding.Lot

   case LandUse == "商用" : Commercial.Lot

   

   else  : Greenspace.Lot


阅读:197