public Result Execute(ExternalCommandData commandData, ref string message, ElementSet elements) { Result result; Implementations.cmdData = commandData; try { Implementations.OpenWPF(); result = Result.Succeeded; } catch (revExc.OperationCanceledException) { result = Result.Cancelled; } catch (Exception ex) { message = ex.Message; result = Result.Failed; } return(result); }
private void RunButton_Click(object sender, RoutedEventArgs e) { Implementations.RevitFileProcessor(SourceCollection); //List of revit files //dostuffmethd(public property }