Book a Demo

Author Topic: How to remove a connector programmatically  (Read 2866 times)

molusco

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
How to remove a connector programmatically
« on: May 11, 2010, 11:42:30 pm »
Good afternoon, everyone

I have a fairly complex add-in to make automatic associations/realizations between elements, and I need some removal functionality.

I tried to use the element.Connectors.DeleteAt(x, true) method, but it didn't work. After some reference reading, I found that the Connectors collection in Element is read-only. Is there any other way to remove a given element's connectors, programmatically?

I hope this is not a duplicated thread. I really searched for some info on the forum, but coundn't find it.

Best regards.
« Last Edit: May 11, 2010, 11:43:46 pm by molusco »

molusco

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: How to remove a connector programmatically
« Reply #1 on: May 12, 2010, 02:45:06 am »
Don't bother, a Element.Update() was missing in the end of operations.

Sorry for the time wasted, guys. Admins, feel free to delete this post.

Thanks for everyone's time :)