コード例 #1
0
        //***********************************Execute***********************************
        public void Execute(UpdaterData data)
        {
            Document doc = data.GetDocument();
            // When Revit Element is modifed get element id.
            var modifiedIds = data.GetModifiedElementIds();
            // When Revit Element is added.
            var addedIds = data.GetAddedElementIds();

            // Trigger to run the alexa database program.
            Alexa_Program program = new Alexa_Program();

            program.AlexaProgram(doc);
        }
コード例 #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;
            // When button is pushed in Revit this will run the same
            // program as the autotrigger.
            Alexa_Program program = new Alexa_Program();

            program.AlexaProgram(doc);

            return(Result.Succeeded);
        }