Sign in with Microsoft
Sign in or create an account.
Hello,
Select a different account.
You have multiple accounts
Choose the account you want to sign in with.

Add a new element to the tree view

  1. In the tree view, right-click the package or class you want to add the new element to, and then point to New.

  2. Click the type of element you want to add.

    An icon for the new element appears in the tree view.

Add a new element to a diagram

  1. In the tree view, double-click the icon that represents the diagram you want to add a new element to.

    The appropriate stencil and drawing page appear.

  2. Drag the shape representing the element you want to add to a diagram from the stencil onto the drawing page.

    For many shapes, such as Class shapes, Use Case shapes, and Component shapes, an icon representing the new element appears in the tree view.

    Tip: You can also add an element to a diagram by creating a new element in the tree view, and then dragging the element onto the drawing page.

Add a view of an existing element to a diagram

  1. In the tree view, double-click the icon that represents the diagram you want to add a copy of an element to.

    The appropriate stencil and drawing page appear.

  2. From the tree view, drag the icon for the element you want to create a view of onto the drawing page.

    A shape representing the element appears on the drawing page, but no additional icon representing a view of the element appears in the tree view.

    Note: Any changes you make to the original element appear in views of the element.

Duplicate an existing element in a diagram

  1. In a diagram, select the element you want to duplicate.

  2. Press CTRL+drag to create a copy of the element.

    Two elements in the same package cannot have the same name, so when you duplicate an element, a new name is assigned to the duplicate.

    Tip: By default, pressing the CTRL key while dragging an element creates a copy of the element. You can change the default behavior so that CTRL+drag creates a view of an element rather than a copy. To change the behavior, on the UML menu, click Options, click the UML Add-On tab, and then, for Shape Ctrl-Drag behavior, choose Copy object view.

Duplicate an existing element in the tree view

  1. Right-click the icon representing an element you want to duplicate, and then click Duplicate.

    Two elements in the same package cannot have the same name, so when you duplicate an element, a new name is assigned to the duplicate.

  2. Drag the duplicate icon to the appropriate package in the tree view.

Drawing options

On the UML tab, click Drawing Options, and then click the UML Add-on tab to set options for the UML Model Diagram template that determine default behavior for shapes, packages, object names, and more.

Option

Description

Shape Ctrl-Drag Behavior

Choose the result you get when you hold down the CTRL key and drag a UML shape. The default is Copy object, which means that you duplicate the UML element the shape represents, including all of the element's property values. The duplicate is automatically assigned a new name.

Copy object view creates a view of the element the shape represents (if this is permitted according to the UML specification). You can drag the shape representing the view into another package or diagram in the model.

Create A Diagram Page When A Package Or Subsystem Shape Is Added To A Document

Select to automatically create a Static Structure diagram drawing page each time you add a new package or subsystem to your model. If you clear the option, you must create a new diagram drawing page yourself.

Create Watermark On Drawing Page

Select to have a watermark of the diagram type name appear on the workspace directly above each drawing page.

Prompt For Model Element(s) Delete On Delete Of Shape(s)

Choose the result you get when you delete a UML shape. When this option is selected, each time you delete a shape from a diagram, you are prompted to choose to delete only the shape (the element view) or both the shape and the model element. If this option is not selected, the shape (element view) is deleted from the diagram only.

Delete Connectors When Deleting Shapes

Select to delete the connectors attached to a shape when you delete that shape from the drawing page.

Instantiate A Lollipop Shape

Select to have an interface appear as a lollypop interface shape when it is dropped onto the drawing page from the tree view in the Model Explorer.

Instantiate A Class-like Interface Shape

Select to have an interface appear as a class-like interface shape when it is dropped onto the drawing page from the tree view in the Model Explorer.

Auto Assign Names To Newly Created UML Element

Select to automatically assign names to new UML objects you create. If you clear the option, no names are assigned until you type one in the object's UML Properties dialog box.

Set Defaults

Click to set the options currently selected on the UML Add-on tab as the default settings for each new UML model diagram file you open.

Need more help?

Want more options?

Explore subscription benefits, browse training courses, learn how to secure your device, and more.

Communities help you ask and answer questions, give feedback, and hear from experts with rich knowledge.

Was this information helpful?

What affected your experience?
By pressing submit, your feedback will be used to improve Microsoft products and services. Your IT admin will be able to collect this data. Privacy Statement.

Thank you for your feedback!

×