1
Automation Interface, Add-Ins and Tools / Re: C# Plugin: Product Line Feature Diagram in UML
« on: November 09, 2009, 10:14:49 pm »Quote
Quote[size=18]...[/size]Hi Edoardo,
EA.Connector con1 = (EA.Connector)associazione.Connectors.AddNew("", "Composition");
[size=18]...[/size]
According to the EA Help, "Composition" is not a valid type here. The Connector Type needed is "Aggregation"
The AggregationKind is represented by the Aggregation attribute of the appropriate ConnectorEnd.
Valid values are:
0 = None
1 = Shared
2 = Composite.
Be warned though, that your "appropriate end" may be affected by the way you have instructed EA to draw Aggregations.
The general advice by long-term users is to avoid EAAggregations and use ordinary Associations appropriately adorned. If you do a search for Aggregations you find more on this.
Paolo
Thanks a lot, this solved my problem!