public void Execute( UpdaterData data )
{
Document doc = data.GetDocument();
Application app = doc.Application;
foreach( ElementId id in
data.GetAddedElementIds() )
{
View view = doc.GetElement( id ) as View;
if( null != view
&& ViewType.Elevation == view.ViewType )
{
TaskDialog.Show( "ElevationWatcher Updater",
string.Format( "New elevation view '{0}'",
view.Name ) );
}
}
}