Book a Demo

Author Topic: copy / paste an element or a package  (Read 4060 times)

iwt2

  • EA Novice
  • *
  • Posts: 15
  • Karma: +0/-0
    • View Profile
copy / paste an element or a package
« on: September 09, 2016, 08:13:38 pm »
Dear friends, I have experience in developing plugins on ea, but I wanted to ask about a matter. Do you know if the API of ea provides a method to copy / paste (i.e. clone) an element or a package (recursively)?

If you use the user interface, you can find this option in the menu, But I do not find nothing in the API about this topic.

Thank you

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: copy / paste an element or a package
« Reply #1 on: September 09, 2016, 08:48:15 pm »
EA.Package.Clone()  ???

Geert

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: copy / paste an element or a package
« Reply #2 on: September 09, 2016, 09:15:52 pm »
If you want to clone a single element: create a dummy package, move the element temporarily inside, clone the package, move the element back, move the cloned element to where you want it, remove dummy package and its clone.

q.