Book a Demo

Author Topic: Delete an element  (Read 3809 times)

tzafrir

  • EA User
  • **
  • Posts: 127
  • Karma: +0/-0
    • View Profile
Delete an element
« on: February 26, 2016, 07:00:02 am »
Hi,

I guess this should be straight forward,
but I can find any API that would simply delete an EA.Element from the module.
Is there such an API?

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Delete an element
« Reply #1 on: February 26, 2016, 07:08:44 am »
You need to locate the containing package (take the element's parent package). Then from this package iterate its Elements collection, find the one to delete and with the correct index issue a DeleteAt.

You could write a wrapper doing the work for you...

q.