public Result Execute(ExternalCommandData commandData, ref string message, ElementSet elements)
        {
            UpdaterClass updater = new UpdaterClass(commandData.Application.ActiveAddInId);

            UpdaterRegistry.RemoveAllTriggers(updater.GetUpdaterId());
            UpdaterRegistry.DisableUpdater(updater.GetUpdaterId());
            UpdaterRegistry.UnregisterUpdater(updater.GetUpdaterId());
            return(Result.Succeeded);
        }
        public Result Execute(ExternalCommandData commandData, ref string message, ElementSet elements)
        {
            PublicVariables.SetUiApplication(commandData.Application);
            PublicVariables.SetUiDocument(commandData.Application.ActiveUIDocument);

            UpdaterClass updater = new UpdaterClass(commandData.Application.ActiveAddInId);

            UpdaterRegistry.RegisterUpdater(updater);
            UpdaterRegistry.EnableUpdater(updater.GetUpdaterId());
            UpdaterRegistry.AddTrigger(updater.GetUpdaterId(), new ElementClassFilter(typeof(FamilyInstance)), Element.GetChangeTypeAny());
            UpdaterRegistry.AddTrigger(updater.GetUpdaterId(), new ElementClassFilter(typeof(FamilyInstance)), Element.GetChangeTypeElementAddition());
            return(Result.Succeeded);
        }