Creating a class instance in a class diagram

I am trying to add an instance of a class to a class diagram, to provide examples of classes when describing a part of the domain visually.

(After not finding a menu option, I searched the help for “instance” and didn’t find anything, and a similar search here got results about the concept or code generation, rather than about diagramming. I was surprised you can add multiple views of the same class to one diagram, but not easily create a class instance, unless I’m missing something.)

Thanks!

Hi Dennis,

You may create an “Instance Specification” which belongs to the Object diagram palette. You may refer to this article on how to incorporate other palettes to your current diagram:

And here is a nice article teaches how you can create instance of a Class using Instance Specification:

Hope this could answer your question,

Antony.