AnsweredAssumed Answered

Can anyone offer me any help with why I am getting a "Mismatch Token" error in this rule on the line indicated in bold?

Question asked by lbarrett_toak on Jan 3, 2017
Latest reply on Jan 6, 2017 by lbarrett_toak

@Range ("Gable","Hip","Flat","Pyramid")
attr RoofType = "Gable"

@Range ("Bungalow","SplitLevel","TwoStorey","ThreeStorey")
attr myUseType = "Bungalow"

@StartRule
BronteFootprints -->
comp (f) {top:Roof |side:Wall}

Extrude -->
         extrude(myUseType)

         

* case whatUse == "Bungalow" : BungalowUseType
   case whatUse == "TwoStorey" : TwoStoreyUseType
   case whatUse == "ThreeStorey" : ThreeStoreyUseType
   case whatUse == "SplitLevel" : SplitLevelUseType
   else: Other.

BungalowUseType -->
            BungalowUse (2.75)
TwoStoreyUseType -->
T         woStoreyUse (5.5)
ThreeStoreyUseType -->
         ThreeStoreyUse (8.25)
SplitLevelUseType -->
         SplitLevelUse (4.15)

 

Roof-->
         case RoofType == "Gable" : GableRoof
         case RoofType == "Hip" : HipRoof
         case RoofType == "Pyramid" : PyramidRoof
         else: FlatRoof.
         color (0,1,0)

GableRoof-->
roofGable(30)
HipRoof-->
roofHip(30)
PyramidRoof-->
roofPyramid(30)
Wall-->
color (46,46,46)

Outcomes