public Result Execute(ExternalCommandData commandData, ref string message, ElementSet elements)
        {
            var mainView = new FamilyManagerMainView();

            mainView.ShowDialog();
            return(Result.Succeeded);
        }
        public Result Execute(ExternalCommandData commandData, ref string message, ElementSet elements)
        {
            UIApplication uiapp = commandData.Application;

            _uidoc = uiapp.ActiveUIDocument;
            _app   = uiapp.Application;
            _doc   = uidoc.Document;
            var mainView = new FamilyManagerMainView(this);

            mainView.ShowDialog();
            return(Result.Succeeded);
        }