How to Work with Layers

The elements can be organized in layers which can be moved, hidden or otherwise restricted.

Diagram content can be split into several layers. Layers allow you to hide and show chosen details.

Layers tab in the side bar contains a toolbar with these buttons:

  • Add Layer – adds a new layer
  • Delete Layer – deletes an active (selected) layer
  • Show/Hide Layer – shows a selected layer if it is hidden or hides it if it is displayed
  • Enable/Disable Layer – elements of a disabled layer are visible but they cannot be selected or moved.
  • Lock/Unlock Layer – elements of a locked layer are visible, can be selected and edited but they cannot be moved.
  • Merge All Layers – merges all layers into a single layer
  • Move Up Layer – moves up selected layer
  • Move Down Layer – moves down selected layer

Ribbon - Diagram Tab / Layers Group

Layers Group offers actions for handling the layers in the active diagram. Each diagram can consist of several layers, which are rendered one by one. Each layer can contain elements. The layer can be hidden, locked or deleted. So you can manipulate many relative elements at once.

Add Layer - Adds a new layer into the active diagram.

Layers - Shows a list of layers of the active diagram. It allows you to activate another layer.

Hide Layer - Hides the active layer in the active diagram.

Delete Layer - Deletes the active layer in the active diagram.

Merge Layers - Merges all layers in the active diagram to a single layer.

Show All Layers - Makes visible all layers in the active diagram.

Working with Layers

Working with Layers
Working with Layers

Add Elements into Layer

If you want to add elements into a layer, select a layer (click on its name in the list of layers). All elements, you add into diagram will be placed in the active (selected) layer.

Move Elements into Another Layer

You can mouse selected elements to another layer. Right click on a selected element to show the context menu, click on Move to Layer menu item which opens a submenu with all layers in the current diagram. Clicking on a layer menu item moves the selected element(s) to the chosen layer.


Ralph Reinhold 14 March 2012 7:25:47

Example of Layers in Use

I read your instructions, but I have no idea of the actual use of a layer. I assume that you could use them in a variety of ways. For example, one could do a use case and then break down the bubbles into activity diagrams. However, I don't know how best to use layers to create workable code. An example would be very useful.

Dusan Rodina - 14 March 2012 14:47:42

RE: Example of Layers in Use

I will add an example soon.

Layers allow to work with many levels of details in a single diagram. They allow to show/hide only some parts of the diagram. In the current version, source code generator does not take into account the layers, they are used only in visual manner.

Ralph Reinhold 22 March 2012 10:45:35

RE: RE: Example of Layers in Use

I had the impression it was a way of nesting lower levels. If I'm doing an activity diagram where each Activity represents the roll up of lower level activities, do I handle the lower levels as separate projects rather than layers?

Dusan Rodina - 22 March 2012 14:53:29

RE: RE: RE: Example of Layers in Use

You can associate an activity diagram from the same project (right-click on the activity/Add Existing Diagram) or you can associate a new diagram (right-click on the activity/Add New Diagram). Then the activity will be linked with this diagram and you can navigate to this diagram each time you double-click on this activity.

I can add linking to other projects in one of next versions.

Ralph Reinhold 22 March 2012 15:34:04

RE: RE: RE: RE: Example of Layers in Use

Thanks. That's exactly what I was looking for.

New Comment