1
General Board / Re: Not able to Add ConnetorTags
« on: February 27, 2023, 03:02:22 pm »
Thanks, it worked! 

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
EA.Connector connector;
connector = target.Connectors.AddNew("","Dependency");
connector.ClientID = source.ElementID;
connector.SupplierID = target.ElementID;
connector.Update();
var tag = connector.TaggedValues.AddNew("Tag", "String");
tag.Value = "tagVal";
connector.Update();
EA.Connector connector = source.Connectors.AddNew("Aggregation", "Aggregation");
connector.SupplierID = source.ElementID;
connector.ClientID = target.ElementID;
connector.Direction = AddinConstants.Connector.DirectionSrcDest;
connector.SupplierEnd.Aggregation = 2;//if Composition to Part otherwise 1
connector.Update();