//ID capture of 'Post-New Events' private int IDcollect(EA.Repository repository, EA.EventProperties info) { EventProperty eventP = info.Get(0); repository.SuppressEADialogs = true; return Convert.ToInt16(eventP.Value); }