1. Home
  2. Docs
  3. Chapter 5. UML & Requirement Diagram
  4. 10. Object Diagram
  5. How to draw a Object Diagram in UML

How to draw a Object Diagram in UML

Download PDF

Object diagram is a kind of UML diagram that 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

Perform the steps below to create a UML object diagram in Visual Paradigm.

  1. Select Diagram > New from the application toolbar.
  2. In the New Diagram window, select Object Diagram.
  3. Click Next.
  4. Enter the diagram name and description. The Location field enables you to select a model to store the diagram.
  5. Click OK.

Creating instance specification

To create instance specification in object diagram:

  1. Select Instance Specification from the diagram toolbar.
    Create instance specification
  2. Click on the diagram to create an instance specification shape. Name it.
    Instance specification created

Selecting classifiers

To specify classifiers for an instance specification:

  1. Right-click on the desired instance specification shape and select Select Classifier > Select Classifier… from the pop-up menu.
  2. This opens the Classifiers tab. Click Add… in it.
  3. In the Select Classifier window, select the class(es) to be the classifier of the instance specification. If you are referencing another project, you can select its model element to be the classifier. Just change the from project selection at the top of the window.
    Selecting classifier
  4. Click OK to return to the Instance Specification Specification window.
  5. Click OK to return to the diagram.
    Classifier selected

Defining slots

To define slots for an instance specification:

  1. Right-click on the desired instance specification shape and select Slots... from the pop-up menu.
  2. The Instance Specification Specification window appears with the Slots tab selected. Select the features that you want to define slots on the left and click Define Slot.
    Defining slot
  3. Select a defined slot and click Edit Values… at bottom right.
    Edit values
  4. The Slot Specification window pops out, the Values tab is opened by default. Click Add button and select Text from the pop-up menu.
    Add values to defined slot
  5. Enter the slot value and click OK to confirm.
  6. Click OK again in the Instance Specification Specification window to return to the diagram.
    Instance specification with slot defined

Creating link

To create link between instance specifications:

  1. Move the mouse pointer over the source instance specification.
  2. Press on the Resource Catalog button and drag it out. Drag to the target instance specification and release the mouse button.
    Create a link
  3. Select Link from Resource Catalog. A link is created.
    Link created