Sparx Systems Forum
Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: Marcos Calleja on March 14, 2015, 12:56:31 am
-
Hi!. I'm trying to access a connector of a EA.Element using the method element.Connectors.GetByName(name), and if the connector doesn't exist it's ok but if exist then throws an "Action not supported" error message.
Anyone knows why is this happening?
Greetings and thanks in advance :)
-
IIRC GetByName is not implemented for all collections. Just create a wrapper for it and you're done. That also gives you the possibility to react on duplicate name conditions.
q.
-
Thanks qwerty. I thought it was implemented because appear when you try to access the methods of a EA.Connector. Anyway I did as you said :)