public static void Register(AddInId addInId) { ISharedParameterManager parameterManager = new SharedParameterManager(); PilingCoordinator coordinator = new PilingCoordinator(parameterManager); PilingUpdater.Register(addInId, coordinator); CoordinatePilingUpdater.Register(addInId, coordinator); }
internal static void Register(AddInId addInId, PilingCoordinator pilingCoordinator) { CoordinatePilingUpdater updater = new CoordinatePilingUpdater(addInId, pilingCoordinator); UpdaterRegistry.RegisterUpdater(updater); ElementCategoryFilter basepointFilter = new ElementCategoryFilter(BuiltInCategory.OST_ProjectBasePoint); UpdaterRegistry.AddTrigger(GetUpdaterId(), basepointFilter, Element.GetChangeTypeAny()); }
public static void Unregister() { PilingUpdater.Unregister(); CoordinatePilingUpdater.Unregister(); }