示例#1
0
        public static void StartUp(AddInId id)
        {
            MFElePlaced updater = new MFElePlaced(id);

            UpdaterRegistry.RegisterUpdater(updater, true);
            UpdaterRegistry.AddTrigger(updater.GetUpdaterId(),
                                       new ElementClassFilter(typeof(FamilyInstance)),
                                       Element.GetChangeTypeElementAddition());
        }
示例#2
0
        public static void ShutDown(AddInId id)
        {
            MFElePlaced updater = new MFElePlaced(id);

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