How to Draw Object Diagram?

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
    Create instance specification
  2. Click on the diagram to create an instance specification shape. Name it.
    Instance specification created
    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
    Selecting classifier
  4. Click OK to return to the Instance Specification Specification window.
  5. Click OK to return to the diagram.
    Classifier selected
    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
    Defining slot
  3. Select a defined slot and click Edit Values... at bottom right.
    Edit values
    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
    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
    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
    Create a link
  3. Select Link from Resource Catalog. A link is created.
    Link created
    Link created

Related Resources

The following resources may help you to learn more about the topic discussed in this page.

 
Chapter 10. Object diagram Table of Contents Chapter 11. Composite structure diagram
 

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.