Пример #1
0
        public static void OnStartup(UIControlledApplication application)
        {
            UpdateLoadFactor updater = new UpdateLoadFactor(application.ActiveAddInId);

            UpdaterRegistry.RegisterUpdater(updater, true);
            ElementCategoryFilter rooms  = new ElementCategoryFilter(BuiltInCategory.OST_Rooms);
            ElementId             NameID = new ElementId(BuiltInParameter.ROOM_NAME);

            UpdaterRegistry.AddTrigger(updater.GetUpdaterId(), rooms, Element.GetChangeTypeParameter(NameID));
        }
Пример #2
0
        public static void OnShutdown(Autodesk.Revit.UI.UIControlledApplication application)
        {
            UpdateLoadFactor updater = new UpdateLoadFactor(application.ActiveAddInId);

            UpdaterRegistry.UnregisterUpdater(updater.GetUpdaterId());
        }