Author Topic: Deep Copy of Packages [SOLVED]  (Read 3705 times)

mkeuschn

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Deep Copy of Packages [SOLVED]
« on: May 06, 2008, 12:50:23 am »
Is it possible to copy an entire package with all its child elements (deep copy), or can I do it with some export, import actions?

Would be a nice feature for EA 7.2 if it is not possible to do such a copy  ;).

best regards,
mkeuschn
« Last Edit: May 09, 2008, 12:08:45 am by mkeuschn »

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Deep Copy of Packages
« Reply #1 on: May 06, 2008, 01:23:41 am »
Export to XMI and import again.

Remember that external references - to elements outside of the package tree involved - can produce problems if you don't import to the same project.

Also, read up on the Strip GUIDs option and when you should use it.

David
No, you can't have it!

mkeuschn

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: Deep Copy of Packages
« Reply #2 on: May 09, 2008, 12:08:07 am »
Thank you for your response.

I have found a way to get a copy. The first step is to export the model (you have to take the package after the root element) and call it ucm.xml. When you now create a new Use Case Model with the wizard, the wizard take the formaly created ucm.xml file to create the structure of the new Use Case Model.

best regards,
mkeuschn

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8085
  • Karma: +118/-20
    • View Profile
Re: Deep Copy of Packages [SOLVED]
« Reply #3 on: May 09, 2008, 08:58:12 am »
Just so you know.  If you want to create a copy without overriding something from the model wizard you can export it and re-import it with strip guids on as David suggested above.  This will acheive the same effect.

Alternatively you could distribute it as a separate file with an MDG technology and have a custom entry in the wizard.