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()); }
public static void ShutDown(AddInId id) { MFElePlaced updater = new MFElePlaced(id); UpdaterRegistry.UnregisterUpdater(updater.GetUpdaterId()); }