SysML, UAF, UML, and UPDM Profiles > UML Standard profile (includes the package diagram) > Package diagrams > Package diagram (UML Standard profile) > Adding existing links to a package diagram (UML Standard profile)
  
Adding existing links to a package diagram (UML Standard profile)
You can add existing links to a Package Diagram through the populate commands and through the diagram's toolbar buttons.
For information about adding OVM relationships to a Package Diagram, click here.
To add missing relationships relating to a diagram item:
On a Package Diagram, right-click the item, point to Populate, point to Links, and then click the command for the relationship you want to add.
Note that Access, Import, Package Merge, Profile Application and Realization relationships are all added through the Dependencies command.
To add an existing access or import relationship:
1. On the diagram's toolbar, click the Access or Import button.
2. Click the relationship's start item - a Model Representation, Package, Profile Representation or View.
3. Click the relationship's end item - a Model Representation, Package, Profile Representation, Model Library, Viewpoint or View.
4. From the context menu, click the command for the Access or Import relationship you want to add.
If Modeler creates a new relationship, the relationship does not exist between the two items you clicked in the specified direction - to undo the relationship you created, press the Escape key, and then on the Edit menu, click Undo.
To add an existing profile application relationship:
1. On the diagram's toolbar, click the Profile Application button.
2. Click the relationship's Model Representation, and then click the relationship's Profile Representation.
3. From the context menu, click the command for the Profile Application relationship you want to add.
If Modeler creates a new relationship, the relationship does not exist between the two items you clicked - to undo the relationship you created, press the Escape key, and then on the Edit menu, click Undo.
To add an existing conform relationship:
1. On the diagram's toolbar, click the Conform button.
2. Click the relationship's View, and then click the relationship's Viewpoint.
3. From the context menu, click the command for the Conform relationship you want to add.
If Modeler creates a new relationship, the relationship does not exist between the two items you clicked - to undo the relationship you created, press the Escape key, and then on the Edit menu, click Undo.
Note that the Conforms relationship is available only if both the SysML and UML Standard profiles have been added to the model.
To add an existing dependency:
1. On the diagram's toolbar, click the Dependency button.
2. Click the relationship's start item, and then click the relationship's end item.
3. From the context menu, click the command for the Dependency you want to add.
If Modeler creates a new relationship, the relationship does not exist between the two items you clicked in the specified direction - to undo the relationship you created, press the Escape key, and then on the Edit menu, click Undo.
To add an existing nesting link:
1. On the diagram's toolbar, click the Contained Class Link button.
2. Click the nesting Package, Profile Representation, Model Library or Model Representation.
3. Click the nested Package, Profile Representation, Model Library or Model Representation.
To add an existing package merge relationship:
1. On the diagram's toolbar, click the Package Merge button’
2. Click the relationship's start Package, and then click the relationship's end Package.
3. From the context menu, click the command for the Package Merge relationship you want to add.
If Modeler creates a new relationship, the relationship does not exist between the two items you clicked in the specified direction - to undo the relationship you created, press the Escape key, and then on the Edit menu, click Undo.
To add an existing realization:
1. On the diagram's toolbar, click the Realization button.
2. Click the relationship's start item, and then click the relationship's end item.
3. From the context menu, click the command for the Realization you want to add.
If Modeler creates a new relationship, the relationship does not exist between the two items you clicked in the specified direction - to undo the relationship you created, press the Escape key, and then on the Edit menu, click Undo.