Johnmann111

case issue

Discussion created by Johnmann111 on Aug 20, 2013
Latest reply on Aug 23, 2013 by MBuehler-esristaff
Hello All  I am trying to build a floor plan  from a single shape file that I attributed in Arc. My problem comes about when applying the case statement to the attribute fields. Code below: If I just start off with Glass everything works fine. however when I add wall I get no Errors but the wall does not Extrude. Vise-Versa If i comment out the glass and hit generate the Wall extrudes like I expected. How come when i try to do both nothing happens?

attr WallTypes      = "unknown"
attr FloorTypes  = "unknown"
attr WindowType  = "unknown"
attr DeskType   = "unknown"
attr Floor      = 0
attr Height   = 0
attr Glass_Visibility = 0.5


@StartRule

Glass-->
case WindowType == "Glass" :
  extrude(Height)
  set(material.opacity,Glass_Visibility)
  alignScopeToAxes(y)
  t(0,Floor,0)
  else:
   NIL

Walls-->
case WallTypes == "ExteriorWall":
   extrude(Height)
  alignScopeToAxes(y)
  t(0,Floor,0)
else:
  NIL

Outcomes