7.11 Aligning and Laying Out Components

Alignments place objects in the same horizontal or vertical plane. Alignments help you see relationships in your model. You can align or attach items to the left, center, or right of alignment guides.

When you move the guide, attached items move with it, staying attached in the same relative positions.

To align components:

  1. Press Ctrl, then select more than one item.

    The Align menu option
  2. Right-click, then select Align.

  3. Select an alignment option.

You can also attach an item by dragging it to a guide. After you wait a moment, the guide line is highlighted, indicating that the item is attached.You can align within the same group but not across groups.

Guides that you set up are restored the next time that you run Designer. You don’t need to re-create them.

Also, the alignments and attachments (left, center, or right) are stored in the project on a per-item basis, so that they are also restored.

7.11.1 Alignment Hints

Horizontal and vertical “hint” lines automatically show as you drag items into vertical or horizontal alignment with neighboring items.

Figure 7-30 Alignment Hints

The Alignment Hints feature is off by default. To turn it on, click View > Alignment Hints.

Horizontal and vertical hint lines automatically show as you drag items into vertical or horizontal alignment with neighboring items.

7.11.2 Using Rulers

To turn on the horizontal and vertical rulers:

  1. Click the Modeler space to make it active.

  2. Click View > Rulers.

Rulers in the Modeler

To create a guide (line), click either ruler.

To anchor items to a guide, drag the items in the model to the line.

To simultaneously move all anchored items, drag the line.

7.11.3 Using a Grid

Figure 7-31 The Modeler’s Grid

When the grid is on, the snap-to-grid functionality is on.

To turn grid lines on and off:

  1. Click the Modeler, so that the Modeler is the active view.

  2. Click View > Grid.

To coerce objects to not align with the grid, temporarily turn off snap-to-grid by holding down the Alt key. (Linux doesn’t support this functionality.)

To constrain items to north-south or east-west coordinates, press Shift while dragging the items.

To change the grid size:

  1. Click Window > Preferences > Designer for IDM > Modeler > Display.

    The Modeler page
  2. Type a value in the Grid Width field.

7.11.4 Distributing Applications

Figure 7-32 Distributing Applications

To equally distribute (space) applications horizontally or vertically:

  1. Press Ctrl, then select three or more items.

  2. Right-click, then select Distribute.

  3. Select a distribution (for example, Vertical).

7.11.5 Auto-Layouts

Designer ships with a number of predefined layout topologies: circle, half-circle, star, box, and different fan-out layouts.

Figure 7-33 A Circle Layout

These layouts are set on a per-driver-set basis. Therefore, each driver set can have its own layout.

To select a layout:

  1. Right-click a driver set, then select Arrange Applications.

  2. Select an arrangement (for example, Fan Out - Left).

    If your model has an incorrect layout, the layout options are dimmed.

After you set a layout, applications that you connect will automatically snap into that layout. Certain connected objects (for example, multi-driver connections, eDir-to-eDir connections, and applications that are connected but reside in a different Domain Group) are ignored. They aren’t included in the layout, and they don’t disturb it.

An option on the Arrange Applications submenu on the Modeler’s context menu enables you to expand or contract the layout arrangement. This option makes all spokes of the layout longer or shorter when you drag a slider.

7.11.6 Layouts to Use for Imports

To specify what layout to use on new driver sets that you import:

  1. Select Window > Preferences > Designer for IDM.

  2. Click Modeler > Layouts.

  3. Select an arrangement (for example, Half Circle), then click OK.