Hi!
I try to add a Tagged Value to a connection using the automation interface from a C# application to no success. I am able to add it to other elements, though not all, with Connectors being the most urgent. The lines of code I used are:
EA.ConnectorTag tv = connector.TaggedValues.AddNew("Status", regStatus);
tv.Update();
connector.TaggedValues.Refresh();
I have also seen someone suggesting the following approach, which does not work neither:
EA.ConnectorTag tv = connector.TaggedValues.AddNew("Status", "String");
tv.Value = regStatus;
tv.Update();
connector.TaggedValues.Refresh();
I am able to set a Tagged Value on an element using the following construct:
(element.TaggedValues.AddNew("Status", regStatus) as EA.TaggedValue).Update();
element.TaggedValues.Refresh();
So I figure I have understood the way this is supposed to be doneā¦

But then, for Connections I just cannot get it to work. Anyone has any ideas?
Best regards,
Jonas