public Result Execute(ExternalCommandData commandData, ref string message, ElementSet elements)
 {
     try
     {
         UIDocument   uidoc         = commandData.Application.ActiveUIDocument;
         string       baseLevel     = Properties.Settings.Default.BaseLevelName;
         string       topLevel      = Properties.Settings.Default.TopLevelName;
         float        scale         = Properties.Settings.Default.Scale;
         HouseBuilder elementPlacer = new HouseBuilder(uidoc.Document, baseLevel, topLevel, scale);
         using (Transaction transaction = new Transaction(commandData.Application.ActiveUIDocument.Document, "Dimensioning"))
         {
             transaction.Start();
             elementPlacer.DimensioningBuilding(2, false);
             elementPlacer.DimensioningBuilding(4, true);
             transaction.Commit();
         }
         return(Result.Succeeded);
     }
     catch (Exception e)
     {
         message = e.Message;
         return(Result.Failed);
     }
 }