public DuplicateTypeAction OnDuplicateTypeNamesFound(DuplicateTypeNamesHandlerArgs args) { Document doc = args.Document; List <ElementId> ids = args.GetTypeIds().ToList(); foreach (ElementId id in ids) { Element elem = doc.GetElement(id); if (elem is View) { DuplicateTypes.types.Add(elem.Name); } } return(DuplicateTypeAction.UseDestinationTypes); }
/// <inheritdoc/> public DuplicateTypeAction OnDuplicateTypeNamesFound(DuplicateTypeNamesHandlerArgs args) { return(DuplicateTypeAction.UseDestinationTypes); }
/// <summary> /// Implementation of the IDuplicateTypeNameHandler /// </summary> /// <param name="args"></param> /// <returns></returns> public DuplicateTypeAction OnDuplicateTypeNamesFound(DuplicateTypeNamesHandlerArgs args) { // Always use duplicate destination types when asked return(DuplicateTypeAction.UseDestinationTypes); }
/// <inheritdoc/> public DuplicateTypeAction OnDuplicateTypeNamesFound(DuplicateTypeNamesHandlerArgs args) { return(DuplicateTypeAction.Abort); }
public DuplicateTypeAction OnDuplicateTypeNamesFound(DuplicateTypeNamesHandlerArgs args) { // Always use duplicate destination types when asked return DuplicateTypeAction.UseDestinationTypes; }