Beispiel #1
0
        public Result Execute(
            ExternalCommandData commandData,
            ref string message,
            ElementSet elements)
        {
            UIApplication uiapp = commandData.Application;
            UIDocument    uidoc = uiapp.ActiveUIDocument;
            Application   app   = uiapp.Application;
            Document      doc   = uidoc.Document;

            ParameterManager manager = new ParameterManager(uiapp, doc);

            manager.ExportVICO();

            return(Result.Succeeded);
        }
Beispiel #2
0
        public Result Execute(
            ExternalCommandData commandData,
            ref string message,
            ElementSet elements)
        {
            UIApplication uiapp = commandData.Application;
            UIDocument    uidoc = uiapp.ActiveUIDocument;
            Application   app   = uiapp.Application;
            Document      doc   = uidoc.Document;

            if (!Utils.IsAlreadyBound(doc, "Modelling Tool"))
            {
                TaskDialog.Show("Import from Excel will not execute.", "No Budget Parameters exist to be populated.");
                return(Result.Failed);
            }

            ParameterManager manager = new ParameterManager(uiapp, doc);

            manager.ImportExcel();

            return(Result.Succeeded);
        }