//' construct our updater.
WindowDoorUpdater
winDoorUpdater = new WindowDoorUpdater(application.ActiveAddInId);
//' ActiveAddInId is
from addin menifest.
//' register it
UpdaterRegistry.RegisterUpdater(winDoorUpdater);
//' tell which elements
we are interested in notified.
//' we want to know when wall changes it's
length.
//'
ElementClassFilter
wallFilter = new ElementClassFilter(typeof(Wall));
UpdaterRegistry.AddTrigger(winDoorUpdater.GetUpdaterId(),
wallFilter, Element.GetChangeTypeGeometry());