Ejemplo n.º 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());
        }
Ejemplo n.º 2
0
        public static void ShutDown(AddInId id)
        {
            MFElePlaced updater = new MFElePlaced(id);

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