4

I am creating a Aggregation connector though Add-In. I am able to create the connector without Strong target end point by using the below mentioned code.

EA.Connector connector = signalEle.Connectors.AddNew("", "Aggregation");
                    connector.SupplierID = parentElement.ElementID;
                    connector.Subtype = "Strong";

                    connector.StyleEx = "LFEP=" + strEleName.AttributeGUID + "L;";
                    connector.ClientEnd.Role = strEleName.Name;
                    connector.Update();

enter image description here

How to create the connector with Strong target end ?

Manish kumar
  • 287
  • 1
  • 10

1 Answers1

3

EA strikes again. Instead of setting subType to "Strong" you need to do this:

ce = connector.clientEnd;
ce.Aggregation = 2;
ce.Update();

Or if vice versa use supplierEnd instead. The subType seems to be ignored in this case.

qwerty_so
  • 35,448
  • 8
  • 62
  • 86
  • @ Thomas: It working fine. Thank you for the support – Manish kumar Apr 06 '17 at 11:40
  • we should have the EA devs visit this SO from time to time – Mart10 Apr 06 '17 at 17:54
  • @MartinGrégoire I think that some of them also look into this, but do not answer. Speaking from my 15 years experience with Sparx I think I can tell that the times where customer opinion had (great) value have gone since (say) 12 years. Latest with V6 (IIRC) marketing took over and Dante's Inferno came to Earth: "Abandon all hope, ye who enter here". Also, the support guys have quite some understanding of us users. But their influence on the development team is limited. I also had been in the support of a large IT company and can understand the reasons. – qwerty_so Apr 06 '17 at 20:08
  • Tom O'Reilly (currently the COO) sometimes answers questions here. I haven't seen any of the other Sparxians here yet. – Geert Bellekens Apr 13 '17 at 12:05