You can import a package from an XMI (XML based) file. This enables you to move Enterprise Architect Model elements between models, for distributed development, manual version control and other benefits.
You can import the following formats:
Enterprise Architect can also import the *.emx and *.uml2 files generated by tools such as Rational Software Architect (RSA) and Rational Software Modeler (RSM).
Import From XMI
To import a package from XMI, follow the steps below:
|1.||In the Project Browser window , select the package into which to import the file.|
|·||Right-click and select the menu option, or|
The Import Package from XMI dialog displays.
Note: To import .emx or .uml2 files, click on on the button. Go to Import EMX/UML2 Files.
|3.||In the field, type the directory path and filename from which to import the XMI file.|
|4.||Select the checkbox to import diagrams.|
|5.||Select the checkbox to remove Universal Identifier information from the file on import. This enables the import of a package twice into the same model; the second import requires new GUIDs to avoid element collisions.|
|6.||Select the checkbox to write a log of import activity (recommended); the log file is saved in the directory from which the file is being imported.|
Important: When you import an XML file over an existing package , ALL information in the current package is deleted first. Please make sure you do not have important changes that you do not want to lose before you import the XML file.
Important: If you are importing an XMI 1.1 file that was previously exported with a UML_EA.DTD file, the UML_EA.DTD file must be present in the directory into which the XMI file is being written. An error occurs if the UML_EA.DTD file is absent.