Referencing an external model

To reference a package or an element in an external model, use the UML Package Import Relationship or the UML Element Import relationship respectively. Open the referencing model and the model to be referenced in the workspace.

To add a package import:
  1. Right-click a place in the Main model where the referenced package is to be added.
  2. Select Add UML > Relationship > Package Import.
  3. Select a package from the list of model packages presented.
externalModelAddpckgeImport
To add an element import:
  1. Right-click a place in the Main model where the referenced element is to be added.
  2. Select Add UML > Relationship > Element Import.
  3. Select an element from the list of model elements presented.
The following figure shows a model referencing subsets of the Generic model - as it appears in the project explorer.
GenericModel
The packages and elements that were imported into the main model are now treated as being part of the main model during model validation1 and model extraction.
Note: As mentioned in the previous section, be aware that changes made to imported packages and elements are also made in the referenced model from which they have been imported. To avoid this, the referenced model file (*.emx) can be made read-only by using the file system or the Properties dialog for the model in RSA.
1 If an Event or Action in an imported package is not used in the local model, it will not result in the Unused Event/Action warning message being reported during validation.