Sparx Systems Forum
Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: trickster60 on November 22, 2011, 10:44:11 am
-
I have a need to crteate a connector profile that will only connect to specific element types. More than that the source and target ends could attach to different emement types. How might this be achieved?
-
The only way to prevent a specific type of connectors being created either to or from a specific type of element is by add-in. Search the help for EA_OnPreNewConnector.
If an add-in is too much, you can use quicklinks in a UML Profile to encourage use of the correct connectors rather than prevent use of incorrect. This will only really work well if the source element is stereotyped. Search the help for the page "Developing Profiles" and follow the links from there.
-
Thanks..... I was afraid that would be the case