In this chapter, you learn how to align and arrange shapes neatly using a variety of features, and l explore Visio’s automatic layout features for arranging connected diagrams.
Shape position plays a big role in a diagram’s meaning. Position on the page and proximity to other shapes can signify importance, order in time, or hierarchy.
Tidiness and consistency are also important. A jumbled drawing is hard on your eyes and confusing to look at. An orderly diagram dispenses with noise and lets the meaning shine through..
Visio 2010 has several features for keeping your shapes neatly in order. Some help you maintain tidiness while you draw; others enable you to clean up the mess afterward.
If you’ve noticed thin, orange lines and arrows briefly appearing as you drop shapes on the page, you’ve already seen the Dynamic Grid in action. The Dynamic Grid aims to prevent the mess before it happens.
Access this video file through your registered Web Edition at |my.safaribooksonline.com/9780132182683/media.
Figure 5.1. The Dynamic Grid appears while you drag. Here it indicates vertical alignment and standard spacing between the shapes.
Figure 5.2. The Dynamic Grid helps to enforce uniform spacing between shapes.
Figure 5.3. AutoConnect uses the same standard spacing that the Dynamic Grid uses when offsetting new shapes.
Figure 5.4. The Dynamic Grid works in both directions simultaneously.
The uniform spacing used by the Dynamic Grid is flexible. Visio looks for patterns in related shapes to establish local spacing values. You effectively set uniform spacing for a region when you drop a second shape next to a first. Subsequent shapes in that area of the drawing will use that spacing. This means that you can have several different uniform spacing values on a page, as Figure 5.5 illustrates.
Figure 5.5. Several different local uniform spacing values can exist on a page. Visio is smart enough to recognize related groups of shapes.
If no grid spacing has been established or Visio detects no spacing pattern, Visio uses standard horizontal and vertical spacing values, which are defined for each page. AutoConnect always uses these standard spacing values when you insert shapes by clicking AutoConnect arrows. However, AutoConnect doesn’t respect local spacing values, unfortunately.
You can change the standard spacing for a diagram. Right-click a Page tab and choose Page Setup. On the Layout and Routing tab, click Spacing. Under Space Between Shapes, you can change the Horizontal and Vertical values. Visio also uses these values for spacing shapes when automatically laying out connected diagrams, and AutoConnect uses it when adding new shapes.
When you have lots of shapes on a page that are roughly the same size, such as in a flowchart or network diagram, the Dynamic Grid is most likely to assist you with center-to-center alignment. The Dynamic Grid also can align shapes by their edges: left, right, top, and bottom. Figure 5.6 shows a small shape being aligned to larger shapes at its top and right edges.
Figure 5.6. Irregularly sized shapes can be aligned using the Dynamic Grid.
If you have been furiously flowcharting away, rapidly rearranging process steps and not paying attention to the Dynamic Grid, you might find yourself with a rather disheveled flowchart.
To save you the trouble of straightening everything one shape at a time, Visio 2010 has added the Auto Align & Space button. Located in the Arrange group on the Home tab, this button wonderfully straightens out your diagrams, as illustrated in Figure 5.7.
Figure 5.7. The messy flowchart on the left is cleaned up with a single click of the Auto Align & Space button.
Auto Align & Space has no options or settings or drop-down submenus. Just click that big button and POW! Your connected diagrams instantly get straightened out. Auto Align & Space operates on only the shapes you select, but if no shapes are selected, it tidies up the whole page.
While AutoConnect and the Dynamic Grid make it easy to maintain clean diagrams while you draw, I think Auto Align & Space nicely rounds out the feature set. It allows you to work lightning fast and concentrate on the information in your diagram, knowing that cleanup can be effectively taken care of later. Also, if you have AutoConnect or the Dynamic Grid turned off for whatever reason, Auto Align & Space is still there to help you out afterward.
Access this audio file through your registered Web Edition at my.safaribooksonline.com/9780132182683/media.
Just to the right of the Auto Align & Space button is the Position drop-down button, which contains elemental functions for aligning, distributing, rotating, and flipping shapes. Figure 5.8 shows all of Position’s items and subitems.
Figure 5.8. The Home, Arrange, Position menu and its submenus.
Though Dynamic Grid, Auto Align & Space, and AutoConnect decrease the need for many of these functions, some diagrams are too complex for the Dynamic Grid. Also, some non-connected diagram types, such as office plans, aren’t suited for Dynamic Grid, AutoConnect, or Auto Align & Space. In these cases, the functions under Position are especially useful.
Access this audio file through your registered Web Edition at my.safaribooksonline.com/9780132182683/media.
You can align shapes by their left, right, top, or bottom edges as well as their horizontal and vertical centers.
LET ME TRY IT
Select all the rectangles, click the Fill drop-down, and choose Fill Options at the end of the list. The Fill dialog appears, and lets you select a color and set a transparency level among other things. Try setting a 50% transparency for your rectangles.
a. Click the shape that you want to be the primary shape—the one that the other shapes will align to.
b. Hold down the Shift key.
c. Drag a selection rectangle around the rest of the shapes, or click each one individually while continuing to hold the Shift key.
Figure 5.9. Using the alignment functions of the Position drop-down. Note the box with the thicker selection highlight in the bottom-left corner. This is the primary selection, to which the other shapes get aligned.
If you need a set of shapes to be equally spaced, the distribute functions can help. You find them in the Space Shapes group within the Position drop-down. For veteran PC users, “space” seems to be the Visio 2010 verb for what used to be called “distribute.”
Figure 5.10 shows a practical application of shape distribution (spacing). The left half of the image shows horizontal and vertical reference line shapes that aren’t nicely distributed. The goal is to create a grid so that a coordinator can communicate locations within a building to contractors; for example, “The elevator at C-4 is due for regular maintenance.”
Figure 5.10. Distributing zone shapes horizontally and vertically to create a reference grid for an office plan.
Manually positioning the reference shapes is difficult and time consuming, and the Dynamic Grid’s uniform spacing features aren’t quite right for this task. You could use the Size & Position dialog to numerically specify locations for the shapes, but the Space Shapes functions, make this a simple task.
The key is to place the shapes roughly in order and then make sure the first and last shapes span the appropriate region. In Figure 5.10, shapes 1 and 6 are at the horizontal extremes of the plan, and shapes A and F are at the vertical extremes. The remaining shapes just need to be spaced equally between them.
To distribute each set of shapes, simply select all shapes that you wish to equally space, and then click Position, Space Shapes, Distribute Horizontally, or Distribute Vertically. The distribute functions calculate the necessary shape-to-shape spacing required to evenly distribute the selected shapes between the extremes.
If you need to space the shapes a specific distance from each other, you can use the Position, Spacing Options command. This presents a dialog where you enter precise horizontal and vertical measurements. Oddly, it seems to work only with connected diagrams; it would be a great feature for organizing grids of nonconnected shapes, too!
At the bottom of the Position menu is the Orient Shapes group with two curiously similar-sounding items: Rotate Shapes and Rotate Diagram.
The items under Rotate Shapes enable you to rotate a selection of shapes as a single unit. You can also mirror the shapes in the horizontal or vertical direction using the flip commands.
Rotate Diagram sounds confusing. Isn’t that the same as Rotate Shapes? If you are mathematically inclined or an Excel expert, you will understand that Rotate Diagram transposes shapes. It rotates the positions of the shapes, but not the shapes themselves.
Figure 5.11 contrasts Rotate Shapes and Rotate Diagram. Note that Rotate Diagram applies only to connected shapes.
Figure 5.11. Shapes rotated using Rotate Shapes and transposed using Rotate Diagram.
Visio has a few other elements that are useful for keeping diagrams straight and orderly. The grid, ruler, and guides have been around since the first release of Visio and are starting to be considered old-fashioned.
Although the newer Dynamic Grid and Auto Align & Space features are snazzy and impressive, they are most useful for connected diagrams. The grid, ruler, and guides are still great for measured drawings, block diagrams, user-interface mockups, and other unconnected drawings.
You can show or hide the grid, ruler, and guides using check boxes in View, Show. Let’s discuss what they are used for so you can better decide whether to turn them on or off in the first place.
Visio’s grid gives you quick visual and tactile feedback for aligning shapes and maintaining consistency. As you draw and resize shapes, your cursor snaps to the grid.
This feature makes it easy to create shapes that have identical or similar sizes, and makes it easy to abut shapes against each other. Because Visio doesn’t have any kind of abutting function, “designing shapes that fit the grid” goes beyond a compulsion for senseless order and makes it easy to place them against each other.
The blocks in Figure 5.12 demonstrate the usefulness of fitting to the grid. Because all the squares are exactly 1 inch × 1 inch, it is easy to snap the arrow shapes against their edges. If the squares had nongrid sizes like 1.05 inch × 1.2875 inch, it would be difficult to accurately slide the arrows against them, and the diagram would look sloppy.
Figure 5.12. A block diagram with the ruler, grid, and guides in action.
You should be aware of a few quirks about the grid. When you zoom in and out, the grid changes such that you always see roughly the same number of squares. Because of this, it is easy to forget how far in you are zoomed. To keep your perspective, pay attention to the numbers on the ruler and the size of selected shapes in the status bar.
If you really want a fixed grid, click the dialog box launcher for the View, Show group. There, you can specify custom fixed units for both the ruler and the grid, and the grid won’t vary as you zoom in or out.
Just because the grid is visible doesn’t mean that you will snap to it. This is usually the case, but you can turn grid snapping on and off via the Snap & Glue dialog. You access it by clicking the dialog box launcher in the View, Visual Aids group.
The ruler appears along the left and top sides of the drawing window and helps you maintain perspective while zooming in and out. The ruler displays coordinates from the lower-left corner of the page, in the size and units of the drawing scale, not the size of the paper.
You can change the zero point of the ruler by Ctrl+dragging from the top-left corner where the rulers intersect to any point on the page. This capability is useful for measured drawings such as office plans, site layouts, or mechanical drawings. You can reset the origin by double-clicking the ruler intersection.
Guides are used to provide visual cues for horizontal and vertical alignment and as tools for repositioning shapes aligned in columns and rows.
You pull guides out of the rulers, as needed. They look like blue, dashed infinite lines in the horizontal or vertical directions. They don’t print, and you can glue shapes to them.
In Figure 5.12, the four guides are just barely visible. Three are horizontal and one is vertical. They help to highlight the major axes of the diagram but also make adjustments easier because shapes are glued to the guides. In the figure, the AC Appliances arrow is being glued to the guide.
LET ME TRY IT
Two keyboard tricks will help you get shapes aligned when they are off by just a little bit.
You can nudge shapes up, down, left, or right by tapping any of the arrow keys while shapes are selected. If you hold the Shift key while nudging, the shapes move in even finer increments.
The distance moved is in pixels, not a specific distance on the page. So if you are zoomed way out, nudging moves the shapes further than when you are zoomed way in. This is very much an “eyeballing it” feature. If your drawing demands precision, nudging might not be the best way to get shapes properly positioned.
You’ve learned about a range of features for horizontally and vertically arranging and aligning your shapes, but other than a brief mention in Chapter 3, the third dimension has been neglected.
As you create shapes, the most recent ones appear “on top.” They obscure any previously-created shapes that happen to be in the immediate area. However, you don’t have to carefully plan the order in which you add shapes to a diagram because you can easily manage their Z-order. Z-order is just a mathy way of saying front-to-back order. If X is horizontal and Y is vertical, Z is into and out of your computer screen!
In your travels around the Visio interface, you’ve likely seen four commands for dealing with Z-order: Send Backward, Send to Back, Bring Forward and Bring to Front.
Bring Forward and Send Backward move shapes in or out in the Z-order by one level, whereas Bring to Front and Send to Back move shapes all the way out or in.
There are several places to get at them, including:
• Home, Arrange group
• Right-click context menu for any shape
• Shift+Ctrl+F to bring a selection of shapes to front
• Shift+Ctrl+B to send a selection of shapes to back
Note that when you group shapes together, you effectively create a new shape (the group), which ends up on top. Even if all the group’s members were behind other shapes to start, they end up on top. Also, subshapes within a group must belong to the same Z-order pocket and can’t be interwoven. So subshapes inside of a group can’t be both in front of and behind other shapes on the page.
LET ME TRY IT
Layout refers to the arrangement of shapes in a connected diagram. If you think about the way flowcharts, org charts, and network diagrams are typically laid out, you notice a difference in style that helps with the meaning and organization of each diagram type.
When you connect shapes together using the skills you developed in Chapter 4, “Connecting Shapes,” you actually impart meaning to the diagram that Visio can glean to automatically lay out your diagram. In this section, you explore the features, options, and tips for laying out connected diagrams.
If you look at Figure 5.13, you see a well-connected diagram that needs help. Surprisingly, this diagram has enough information to determine the hierarchy of the system. The top-level shapes have been rigorously connected to the next level of shapes, on down the chain. Connectors are glued so that the 1D Begin handle is at the superior shape, and the 1D End handle is glued to the inferior shape. To prove that the hierarchy is really there, I’ve used thicker lines and bigger fonts for higher-level boxes. Regardless, this diagram is still a mess and needs to be cleaned up.
Figure 5.13. A well-connected diagram that desperately needs layout.
If I knew in advance all the boxes needed for this diagram, the Dynamic Grid, AutoConnect could have helped me keep order as I drew. However, I was working quickly and adding boxes as they popped into my head. This is a perfectly valid and organic way to work in Visio.
You could try tidying up using Auto Align & Space, as I’ve done in Figure 5.14. You see that some order is gained, but the overall meaning still isn’t clear.
Figure 5.14. Auto Align & Space makes the diagram neater, but the hierarchy is still not apparent, and the connectors are still spaghetti-like.
The trick, then, is to use Visio’s layout features, which you find in the Layout group on the Design tab. Figure 5.15 shows the heretofore messy energy diagram laid out using the Hierarchy style, chosen from the Re-layout Page gallery.
Figure 5.15. Choosing the Hierarchy layout style from Visio’s layout gallery arranges shapes in an org chart fashion.
Now, the meaning and hierarchy of the diagram are clearly visible. The only complaint is that it is a bit wide for such a small number of shapes—this fairly simple diagram now spills over onto three pages.
In Figure 5.15, notice the Compact Tree layout styles, located just below the Hierarchy options. Compact tree styles work very nicely for this diagram, as Figure 5.16 demonstrates. This is an improvement over the previous one because all the information fits nicely on one page and is more easily seen at a glance.
Figure 5.16. The Compact Tree layout style does wonders for the energy sources diagram.
Notice the Radial and Circular groups at the bottom of the Re-layout Page gallery. A circular arrangement might also work for a diagram like this, although I find that circular or radial arrangements work better for mind maps and network diagrams.
As food for thought, Figure 5.17 shows our example energy hierarchy diagram laid out using the Circular style. I’ve changed the shapes to circles because I think it looks better with this arrangement. Note that I changed the shapes by hand; there’s no magic “change shape” feature.
Figure 5.17. The energy sources diagram with a circular layout and a change in shape style. For extra clarity, darker shapes are higher in the hierarchy.
Before I go on, I’d like to call attention to a few points about the circular layout in Figure 5.17:
• The arrangement takes up more space than the Compact Tree layout.
• Connectors cross over nodes (the circles), so a bit of hand tweaking is required to perfect the diagram.
• The connector style changed from right-angle to straight.
• Because Visio calculates the new layout from existing positions, repeatedly clicking Circular layout gives you a different layout each time. Some might frown on this inconsistency; others might enjoy the game of chance!
Access this video file through your registered Web Edition at my.safaribooksonline.com/9780132182683/media.
Laying out connected diagrams in Visio is theoretically a matter of clicking a button or two. Take a moment to try it for yourself and see how it saves you time, but pay attention to the glitches you run into along the way as well.
LET ME TRY IT
Note that all these shapes are not on the same stencil, so you have to click the various stencil tabs to find them all.
Although networks don’t necessarily have a hierarchy like an org chart, think of connecting from the bigger piece of equipment to the smaller. This will help you to experiment with and understand Visio’s layout functions later on.
Figure 5.18. A server haphazardly connected to three groups of employee equipment.
a. Select all the connectors by clicking Home, Select, Select by Type.
b. Click Shape Role and check only Connectors.
c. Click OK. All the connectors in the page should be selected.
d. Send them to back by pressing Shift+Ctrl+B or using the button in the Home, Arrange group. All connectors should now be behind the network shapes.
Figure 5.19. The Circular layout style applied to the mini network.
The Re-layout button gives you quick access to several preconfigured layout styles. However, you can fine-tune the results by digging into three different dialogs, full of layout and connector settings just waiting to bewilder you.
LET ME TRY IT
Figure 5.20. The network diagram with the Flowchart, Top to Bottom layout style. Text and spacing could be better, though.
a. Select all the shapes in the diagram.
b. On the Home tab, click the dialog box launcher for the Font or Paragraph group and then click the Text Block tab in the pop-up dialog.
c. Click Solid Color and select white from the drop-down color list.
These settings might already be set, depending on the primary selection, because connectors already have opaque text backgrounds. Regardless, be sure to click them both so that Visio knows you intend to make a change.
d. Click OK. The text blocks now have white backgrounds that obscure the connectors, as shown in Figure 5.21. If all connectors haven’t been sent to back, they might be on top of the shape’s text and still be in the way.
Figure 5.21. White text backgrounds obscure connectors and make reading easier.
a. Click the dialog box launcher for the Layout group (on the Design tab). The Page Setup dialog appears, showing the Layout and Routing tab. Take a moment to become utterly confused by all the settings!
b. Click the Spacing button near the lower-right corner of the dialog. The Layout and Routing Spacing dialog appears, showing four pairs of horizontal and vertical spacing options.
c. Because you want more space between the shapes, change the values under Space Between Shapes. Enter 0.75 in. for the Horizontal value and 0.5 in. for the Vertical.
d. Click OK twice to get back to the diagram. Notice that nothing happens. You have to use Re-layout to get the changes to take effect.
e. Click the Re-layout Page drop-down and notice that the current layout setting is highlighted in orange. Click it again to tell Visio to lay out the diagram using the new settings. The shapes are arranged in the same style, but with more space between them, as shown in Figure 5.22. You see that text is more readable, connectors are clearer, and the diagram is easier on the eyes in general.
Figure 5.22. Increased spacing between network shapes makes text easier to read and connectors easier to follow.
Figure 5.23. Mixing layout styles by applying straight lines to a flowchart layout.
Visio has a plethora of ways to fine-tune and tweak layout and connector style settings. Describing all of the options and settings would take many pages and bore you to tears. My best advice is to know where the options are, watch the following Show Me video, and take some time yourself to experiment with how layout settings affect the look of your diagrams.
Here are the places you will find layout and routing settings:
• Layout & Routing tab in the Page Setup dialog
• Spacing dialog, accessed via the Layout & Routing tab in the Page Setup dialog
• Configure Layout dialog, which you get to by clicking “More Layout Options...” at the bottom of the Re-layout Page drop-down gallery
• Re-layout Page and Connectors drop-down buttons in the Layout group on the Design tab
Access this video file through your registered Web Edition at my.safaribooksonline.com/9780132182683/media.
In this chapter, you learned many ways to arrange and align shapes as well as how to lay out connected diagrams. You saw how the Dynamic Grid helps you to maintain order while you draw, while Auto Align & Space and Re-layout Page help you clean up afterward. You learned that Auto Align & Space and Re-layout Page are aimed primarily at connected diagrams, whereas the Dynamic Grid, ruler, grid, and guides can be applied more generally.
You also explored various styles for laying out a connected diagram and how to manipulate some of the variables to fine-tune that layout.
13.59.177.14