コード例 #1
0
ファイル: cmdBudgetParameters.cs プロジェクト: dnenov/ndBIM
        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);
        }
コード例 #2
0
ファイル: cmdBudgetParameters.cs プロジェクト: dnenov/ndBIM
        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);
        }