Operations on Multiple Elements

It is possible to perform various operations on two or more elements on a diagram at once, either to add the same feature or to standardize the size or orientation of the selected elements. This makes it much faster to update the diagram than if you had to modify each element separately.

To select the required elements, either click and drag the cursor over the group to highlight them, or press Shift and click on each element separately.

Access     Right-click on one of the selected elements (for format/layout operations, right-click on the element to standardize the others against)

Options

Option

Detail

Shortcut

See also

Align

Align elements against the 'master' element's:

left edge
right edge
top edge
bottom edge
center, vertically or
center, horizontally
 

You can also edge-align groups of elements using the Diagram Toolbar; the four alignment buttons are made available when more than one element is selected in a diagram.

 

 

Ctrl+Alt+!

Ctrl+Alt+"

Ctrl+Alt+#

Ctrl+Alt+$

Operations on Elements

 

 

 

 

 

 

 

Diagram Toolbar

Space Evenly

(For three or more selected elements.) Automatically even out the spacing between the selected elements, either horizontally or vertically.

 

Alt+-

Alt+=

 

Height/Width

Make all the selected elements match the 'master' element's height or width, or both.

In Use Case diagrams, these options are blocked if the Allow Elongated Use Cases option is turned off on the Options dialog Objects page.

 

 

 

 

Object Display Options

Feature and Compartment Visibility

 

Define the visibility of features and compartments on all selected elements.

Ctrl+Shift+Y

Feature Visibility

Add Tagged Value

 

Add the same Tagged Value to all selected elements.

 

Assign a Tagged Value to an Item

Autosize

Automatically resize the selected elements to their default minimum size (element content permitting).

 

Alt+Z

Autosize Elements

Appearance

Set the same default appearance and font for all of the selected elements at once.

F4

Set an Element's Default Appearance

Set Element Font

 

Make Non-Selectable

Make the selected elements on the diagram non-selectable.

To make the elements selectable again, either:

Right-click on individual elements and click on the Selectable menu option, or
Right-click on the diagram and select the Make All Elements Selectable context menu option

 

 

Operations on Elements

Dockable

Turn the Docking feature on or off for the selected elements. When two elements are dockable, they can be moved together to automatically join along their common edge.

 

 

Operations on Elements

Code Generation

Either:

Generate code for the selected elements together, or
Synchronize code and model for each of the selected elements

 

 

Shift+F11

Ctrl+R

 

Generate a Group of Classes

Transform

Transform the selected elements using a transformation template in a single operation.

 

Ctrl+H

Transform Elements

Copy

Copy the selected elements to the clipboard.

 

 

 

Layout Selected Elements

Automatically adjust the layout of the selected elements on the diagram.

 

 

Layout a Diagram Automatically

Delete Selected Elements

 

Delete the selected elements from the diagram only.

Ctrl+D