Book a Demo

Author Topic: Delete connector from addin  (Read 3496 times)

SomersetGraham

  • EA User
  • **
  • Posts: 376
  • Karma: +1/-0
    • View Profile
Delete connector from addin
« on: May 01, 2013, 08:33:39 pm »
Hi
In my addin I have retrieved a connector -
Code: [Select]
EA.Connector connector = Repository.GetConnectorByGuid(GUID);

Now I want to delete this connector but cannot figure it out

I would be grateful if anyone could throw some light on this

Thanks
Using V12

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Delete connector from addin
« Reply #1 on: May 01, 2013, 08:48:19 pm »
Some else asked a similar question about getElementsByQuery. You need to access the collection of either end (e.g. use the client element). Then find the connector in its Connectors collections and delete it from there.

Why offer an easy solution if you can make it difficult?

q.

SomersetGraham

  • EA User
  • **
  • Posts: 376
  • Karma: +1/-0
    • View Profile
Re: Delete connector from addin
« Reply #2 on: May 01, 2013, 09:20:42 pm »
Thanks qwertry
Why indeed
Using V12

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Delete connector from addin
« Reply #3 on: May 01, 2013, 09:36:46 pm »
I'll start a thread in the suggestions.

q.