Esempio n. 1
0
        private static void DeleteKeeperElementOnce(object sender, IdlingEventArgs idlingEventArgs)
        {
            var uiApplication = DocumentManager.Instance.CurrentUIApplication;

            uiApplication.Idling -= DeleteKeeperElementOnce;
            DynamoRevit.DeleteKeeperElement();
        }
Esempio n. 2
0
        /// <summary>
        /// Executes Dynamo command to show the Dynamo UI
        /// </summary>
        /// <param name="journalData">Journal data passed for the command</param>
        /// <param name="application">Active session of Revit UI application</param>
        /// <returns></returns>
        public Result ExecuteDynamoCommand(IDictionary <string, string> journalData, UIApplication application)
        {
            var data = new DynamoRevitCommandData()
            {
                JournalData = journalData,
                Application = application
            };

            var cmd = new DynamoRevit();

            return(cmd.ExecuteCommand(data));
        }