Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: Marcos Calleja on March 14, 2015, 12:56:31 am

Title: Action not supported trying to access a connector.
Post 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 :)
Title: Re: Action not supported trying to access a connec
Post by: qwerty on March 14, 2015, 03:44:52 am
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.
Title: Re: Action not supported trying to access a connec
Post by: Marcos Calleja on March 16, 2015, 10:51:56 pm
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 :)