Unplanned
Last Updated: 12 Nov 2019 08:39 by ADMIN
Michael
Created on: 06 Nov 2019 14:43
Type: Bug Report
2
Enum not processed properly

When I export a project, enums are not processed properly.  I get:

ViewType viewType1 = activeView.ViewType;
switch (viewType1)
{
     case 1:
          {
                break;
           }
     case 2:
           {
               return result;
           }
}

instead of:

                ViewType viewType1 = activeView.ViewType;
                switch (viewType1)
                {
                    case ViewType.FloorPlan:
                        {
                            break;
                        }
                    case ViewType.CeilingPlan:
                        {
                            return result;
                        }
                }
It's very time consuming to have to go through and figure out which enum to pick when there can be over a hundred options!
0 comments