/// <summary> /// Synchronize all Tagged Values of an Element with its profile/stereotypes /// </summary> /// <param name="rep"></param> /// <param name="el"></param> /// <returns></returns> public bool SyncTaggedValues(EA.Repository rep, EA.Element el) { foreach (EA.TaggedValue tv in _el.TaggedValues) { // synchronize stereotypes/tagged vales var lFqName = Regex.Split(tv.FQName, "::"); if (lFqName.Length == 3) { var sProfile = lFqName[0]; var sStereotype = lFqName[1]; //seems not to work //ret = ret || el.SynchTaggedValues(sProfile, sStereotype); string par = $"Profile={sProfile};Stereotype={sStereotype};"; var ret1 = rep.CustomCommand("Repository", "SynchProfile", par); if (ret1 != "True") { MessageBox.Show($@"{par}", @"Error synchronize EA.Element"); return(false); } } } return(true); }