Please note : This help page is not for the latest version of Enterprise Architect. The latest help can be found here.
Copy Packages Between Projects
Using the XML import/export capabilities of Enterprise Architect, you can copy and move packages between Enterprise Architect projects. This gives you a high level of flexibility in building a project from re-usable parts and from elements produced in widely-dispersed geographic regions.
This procedure, with the Strip GUID's checkbox selected (see step 8, below) is effectively the same as copying packages within or between models. You would tend to use this export/import procedure for duplicating larger structures, such as complete models or projects, although exporting and importing individual child packages within the same model is just as feasible. You cannot export and import specific elements using this procedure, but the process of copying elements within or between packages, models and projects is derived from it.
Procedure
To copy a package from one Enterprise Architect project to another, follow the steps below:
- Open the Enterprise Architect project to copy from.
- In the Project Browser, right-click on the package to copy. The context menu displays.
- Select the Import/Export | Export package to XMI file menu option. The Export Package to XMI dialog displays.
- Select the appropriate options and filename (see the Export to XMI topic for further information).
- Click on the Export button to begin the export process.
- When the export is complete, open the recipient Enterprise Architect project. In the Project Browser, navigate to the location to import the package into.
- Right-click to display the context menu, and select the Import/Export | Import package from XMI file menu option. The Import Package from XMI dialog displays.
- Select the appropriate options and filename (see the Import from XMI topic for further information).
- Click on the Import button. The package is copied from the source project to the destination project.
Note: |
If the package you are importing already exists in the target project (that is, it has been imported previously), you must either import over the existing package or select the Strip GUIDs option, in which case Enterprise Architect creates a replica of the original package. |