Import a UML Profile

Return to Introduction  Previous page  Next page

To import a Profile you must have a suitable Profile XML file, such as the Profiles supplied on the Sparx Systems website at www.sparxsystems.com/uml_profiles.htm. If the Profile includes references to any metafiles, they should be in the same directory as the  Profile XML file.

Import a Profile

To import a Profile, follow the steps below:

1.Open the Resources window (View | Resources).
2.Right-click on the UML Profiles tree node and select Import Profile from the context menu. The Import UML Profile dialog displays.
 
ImportUMLProfilesDlg
 
3.Locate the XML Profile file to import using the [...] (Browse) button.
4.Set the required import option checkboxes for all stereotypes defined in the Profile; you can select:
·Element Size - to import the element size attributes
·Color and Appearance - to import the color (background, border and font) and appearance (border thickness) attributes
·Alternate Image -  to import the metafile image
·Code Templates -  to import the code templates if they exist
·Overwrite Existing Templates - to overwrite any existing code templates defined in the current project.
5.Click on the Import button. The Profile is added to the UML Profiles folder.
 
ImportUMLProfiles2
 

If the Profile already exists, Enterprise Architect prompts you to overwrite the existing version and import the new one (or cancel). Once the import is complete, the Profile is ready to use. You can expand the Profile and drag items from it onto a diagram.

When you import a Profile, it automatically creates pages of elements and connectors in the Enterprise Architect UML Toolbox. Therefore, you can also populate diagrams from this page.