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 coordinator) { PilingUpdater updater = new PilingUpdater(addInId, coordinator); UpdaterRegistry.RegisterUpdater(updater); ElementCategoryFilter filter = new ElementCategoryFilter(BuiltInCategory.OST_StructuralFoundation); UpdaterRegistry.AddTrigger(GetUpdaterId(), filter, Element.GetChangeTypeGeometry()); UpdaterRegistry.AddTrigger(GetUpdaterId(), filter, Element.GetChangeTypeElementAddition()); }
public static void Unregister() { PilingUpdater.Unregister(); CoordinatePilingUpdater.Unregister(); }