Drawing object diagrams

Object diagram shows a snapshot of instances of things in class diagram. Similar to class diagram, it shows the static design of system from the real or prototypical perspective.

Creating object diagram

  • Click on UML on toolbar and select Object Diagram from the drop down menu.
  • Right click on Object Diagram in Diagram Navigator and select New Object Diagram from the popup menu.
  • Select File > New Diagram > UML Diagrams > Object Diagram from the main menu.
Create object diagram
Create object diagram

Creating instance specification

To create instance specification, click Instance Specification on the diagram toolbar and then click on the diagram.

Create instance specification
Create instance specification

An instance specification will be created.

Instance specification created
Instance specification created

Selecting classifiers

To specify classifiers for an instance specification, right-click it and select Select Classifier > Select Classifier... from the pop-up menu.

Select classifier
Select classifier

When the Instance Specification Specification dialog box pops out, the Classifiers tab is opened by default. Select the classifier on the left and click Add Selected button to add it.

Add selected classifiers
Add selected classifiers

Click OK button to close the specification dialog box. The selected classifiers are assigned to the instance specification.

Classifiers assigned
Classifiers assigned

Defining slots

To define slots for an instance specification, right-click it and select Slots... from the pop-up menu.

Defining slots
Defining slots

The Instance Specification Specification dialog box appears with the Slots tab selected. Select the features that you want to define slots on the left and click Define Slot.

Select features to define slots
Select features to define slots

Select a slot in Defined slots and click Edit Values... button.

Edit values of slot
Edit values of slot

The Slot Specification dialog box pops out, the Values tab is opened by default. Click Add button and select Text from the pop-up menu.

Add text value
Add text value

Enter the value when prompted. Close the specification dialog boxes to apply the changes, defined slots will be shown in the instance specification.

Defined slots shown
Defined slots shown

Creating link

To create link from instance specification, click the Link -> Instance Specification resource beside it and drag.

Create link
Create link

Drag to empty space of the diagram to create a new instance specification, or drag to an existing instance specification to connect to it. Release the mouse button to create the link.

Link created
Link created

Continue to complete the diagram.

Completed diagram
Completed diagram
 
1. Drawing class diagrams Table of Contents 3. Drawing package diagrams
 

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.