When creating a complex diagram with numerous shapes or tables from different schemas, you can use containers to organize them effectively. Containers can help group related database objects or separate different types of objects for clarity.
A container is a resizable, colored box with a caption designed to hold other diagram shapes. You can place any diagram object inside a container, including other containers. Table relationships remain intact even when tables are placed in different containers. You can customize a container color and caption, creating multiple containers, each with a unique name and color. For example, when working with tables from multiple schemas, you can create a container for each schema, label them accordingly, and organize objects within their respective containers.
Containers have their internal grid for positioning shapes. If there isn’t enough space, scroll bars appear, enabling you to navigate within the container. Like other shapes, containers can be collapsed by selecting Collapse.
To create a container, do one of the following:
To add objects to the container, do one of the following:
Note
When dragging a shape, if the mouse pointer hovers over a container, the shape will be placed inside the container upon release, even if most of the dragged selection was outside the container. The same behavior is applied when dragging shapes out of a container.
By default, the container is colored with yellow.
To change the color, right-click the container and select Color > required color.
When selecting Color > Custom, the Color window opens, where you can choose a color and select OK to save the changes.
To change container opacity, right-click the container and select Opacity > value in %.
To adjust container shapes, right-click the container, select Shapes, and then select one of the following options:
To select all relations between objects in the container, right-click the container and select Select All Relations.
Alternatively, press Ctrl+Shift+A.
To display the container in Document Outline, right-click the container and select Synchronize with Document Outline.
To rename the container, right-click it and select Rename.
Alternatively, select the container and press F2.
To remove the container from the diagram, right-click it and select Remove from Diagram.
Alternatively, select it and press the Delete keyboard shortcut.
Note
When you remove a container from the diagram, all shapes within it are also removed. However, the corresponding database objects remain intact in the database and have not been deleted.
To display the container in Document Outline, right-click it and select Synchronize with Document Outline.