Please note : This help page is not for the latest version of Enterprise Architect. The latest help can be found here.
Copy a Package
In developing your model, you might want to duplicate the structure and organization of a section so that, for example, you can replicate that part of the model in another model, or make it easier to cross-refer the contents of duplicate sections. You can quickly do this by copying a complete package, including its child packages, elements and diagrams, and then pasting it under:
• | The same parent package |
• | One or more other packages in the same model or project, or |
• | One or more other packages in another model or project |
You would tend to use this procedure for copying sections of a model within the project rather than reproducing an entire model or project, although copying these larger structures is equally feasible.
Duplicate a Package
Action |
Detail |
See also |
||||||||
---|---|---|---|---|---|---|---|---|---|---|
Copy the package |
In the Project Browser, right-click on the package and select the Copy Package to Clipboard context menu option (or click on the package and press Ctrl+C). The Copy Package to Clipboard dialog briefly displays until the copy operation completes.
|
|
||||||||
Paste the package |
In the Project Browser, right-click on the target package into which to paste the copied package, and select the Paste Package from Clipboard context menu option (or click on the package and press Ctrl+V). The Paste Package from Clipboard dialog briefly displays until the paste operation completes. In the Project Browser, the target package is expanded to show the pasted package; if you are pasting the package within the same model as the copied source, the source parent package is also collapsed. If the target package already contains:
You can keep the same package name as the source, or you can rename the package by either:
|
|
Notes
• | A copy of a package does not have the external cross references of the source package; that is, the following connectors are discarded: |
• | Connectors coming from packages and elements outside the package being copied, into the package being copied |
• | Connectors going to packages and elements outside the package being copied, from the package being copied |
• | You cannot paste a package into a parent package that is locked by another user or that is checked in; the Paste... option is grayed out in the context menu |
• | This procedure is effectively the same as exporting and importing the package XMI file, with the Strip GUIDs checkbox selected |
• | The paste operation can be a single transaction or a series of transactions to paste each data item separately, depending on the setting of the Import using single transaction checkbox in the XML Specifications page of the Options dialog |
• | You can also move a package to a different part of the model, in the same way as moving an element |
Learn more