1
Automation Interface, Add-Ins and Tools / EA_OnPostNewConnector: trouble modifying direction
« 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 =).
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 =).