Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: MalkContent on March 04, 2010, 10:12:41 pm

Title: EA_OnPostNewConnector: trouble modifying direction
Post by: MalkContent on March 04, 2010, 10:12:41 pm
Hi.
After having some trouble deleting the new connector in it's OnPostNew Event (which is done by saving the diagram right after the deletion from its clients/suppliers Connectors collection - careful, you have to iterate through the clients/suppliers-package.diagrams and save all those, since connector.DiagramID is 0) - I still have trouble to modify the connectors direction.
The connector in question is a custom stereotype from a mdg technology which has .Direction = "Unspecified" by default. When I modify the direction in the OnPostNewConnector Event-Method I can see the chosen direction 'blink' up for a splitsecond and then it's set back to the default "Unspecified".
It really gives me some trouble since I can change stuff like name, stereotypes, etc. but not the direction (also deletion is a bit more troublesome than usual).

Any ideas would be appreciated =).