Sparx Systems Forum

Enterprise Architect => Suggestions and Requests => Topic started by: mkeuschn on May 06, 2008, 12:50:23 am

Title: Deep Copy of Packages [SOLVED]
Post by: mkeuschn 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
Title: Re: Deep Copy of Packages
Post by: «Midnight» 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
Title: Re: Deep Copy of Packages
Post by: mkeuschn 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
Title: Re: Deep Copy of Packages [SOLVED]
Post by: Eve 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.