Showing model element in multiple diagrams (Context based modeling)

You can show a model element in multiple diagrams to fit into different contexts. To show model elements on different diagrams, you may drag and drop the model element(s) from the tree to the diagram, or copy and paste it as view. 

Reusing model elements

In Model Explorer, a model element or several model elements from the source diagram can be dragged from the tree and drop it/ them on the destination diagram.

Drag a model element from the tree
Drag a model element from the tree

Alternatively, you may copy and paste the selected model element(s) as view in destination diagram. Right click on the selected model element(s) in the source diagram and select Copy > Copy with VP-UML from the pop-up menu.

Copy a model element
Copy a model element

When you switch to the destination diagram, right click on the preferred place that you want the copied model element(s) to be pasted on and select Paste View from the pop-up menu. 

Class PrivateCar is pasted as a new view
Class PrivateCar is pasted as a new view
NOTE: Choosing Paste Model means a new model element will be created and shown on the destination diagram.

The relationship between the model elements may not be shown on diagram. If you want their relationship to be revealed, right click on the model element, select Related Elements > Visualize Related Model Element... from the pop-up menu.

When the Visualize Related Model Element dialog box pops out, check a relationship for the model element(s) and then click the Visualize button to proceed.

As a result, their relationship is shown on the diagram.

Relationship is visualized
Relationship is visualized

Opening other views

You can find out the source diagram of a model element by right clicking on it and select Related Elements > Show Other Views... from the pop-up menu.

Click Show Other Views...
Click Show Other Views...

All diagrams, which contain the same model elements you selected, are listed and shown in the Show View dialog box. You can check a diagram under Views and preview it under Preview; furthermore, click Go to View button to jump to and view the actual diagram.

Show View dialog box
Show View dialog box

Enforcing master view between model element and shape

If a model element is shown on different diagrams, you can define a shape to be the master view of the model element. Right click on the selected shape, select Selection > Set as Master View from the pop-up menu.

Set as Master View
Set as Master View
NOTE: If the shape you right click on is already the master view, the option of Set as Master View won't be shown on the pop-up menu.
 
7. Making shape non-selectable Table of Contents 9. Using overview diagram
 

Product

Try this feature with

Visual Paradigm for UML

Technical Support

Have technical issues or suggestions? Please contact Visual Paradigm Support Team.

Sales Support

Have questions related to registration, licensing or payment? Feel free to contact Visual Paradigm Sales Team.

Discussion Forum

Share your suggestions of opinions at VP Discussion Forum.