Book a Demo

Author Topic: How to copy/dupl a package (to another location) ?  (Read 2681 times)

pstein

  • EA User
  • **
  • Posts: 44
  • Karma: +0/-0
    • View Profile
How to copy/dupl a package (to another location) ?
« on: March 18, 2008, 05:14:35 am »
How can I copy (duplicate/clone) a package to another location within a project?

When I export it into a XMI file and then re-import it I get an error because EntArch detects an already existing package with the same name.

Is there a way to directly copy it (similar to copying a folder in WinExplorer) or - alternatively - disable duplicate name checking of EntArch?

Peter

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: How to copy/dupl a package (to another locatio
« Reply #1 on: March 18, 2008, 05:44:23 am »
You are almost there Peter.

Do the export as you are now. When you do the import, check the option to strip GUIDs.

When EA imports XMI, it allows you to preserve the GUID of all the 'things' (elements, connectors, etc.) you import. This is primarily used to transfer a package tree to another project, or for situations where you want to work on part of a model from a detached location (perhaps taking it home on your laptop) and then patch it back into the same model.

When EA detects a GUID that is in use, it assumes that you are importing the same element (or whatever). If you don't intend to overwrite the current copy then something is wrong, and you cannot proceed.

If you intend to copy a package tree, have EA strip the GUIDs as it performs the import. EA will assign a new GUID in each case. Now you have a set of new elements (and such) that are copies of the originals, but have different identities.

HTH, David
No, you can't have it!