Tutorial: Working with a Grid in Adobe Illustrator

Got a message in my inbox from ssjmaz, who says:

I’m new to working with Illustrator. While working with 45 degree angles and Snap to Grid on I have a hard time getting my lines (routes) to align properly, there is always a part of them that intersects with the neighbouring line.

——

Back when I first started making transit maps, I had this exact same problem. I’d make my grid, turn on Snap to Grid to lock all my route lines to it and start drawing my map. And then I’d realise that while lines drawn horizontally and vertically always worked perfectly, lines at 45 degrees had problems. The first one was always fine, but any subsequent parallel lines simply couldn’t conform to the grid because: mathematics.

If you’ve got a 10 point grid, then each side of a grid square is 10 points long. However, this means that the diagonal distance across the grid square has to be longer – Pythagoras’ Theorem and all that. In the case of a 10-point grid, the diagonal is 14.14 points long. Because of this, locking a second diagonal route line to the grid is just never going to work: it’s either going to be too close and overlap the first one, or too far away, leaving a gap between the two route lines. See the top image above.

So what to do? There are two basic options, shown in the second and third images above:

1. Use the Object > Path > Offset Path… command to offset your existing route line by the required size of your grid (10 points in this example). This works well, but does require some cutting of the resultant path to get the final required segment. I go into more detail about offsetting paths in this post.

2. My preferred method: draw your second diagonal path exactly over the top of the first one and then offset it using the incredibly useful Move dialog box. This is accessed by simply pressing the Return or Enter key while you have an object selected. Input the required distance (equal to your grid: 10 points here) and angle in the relevant boxes. Ignore the first two boxes: they’ll update dynamically as you enter values below, then click ‘OK’ to accept the move. Again, there’s some clean up required as you have to join your new diagonal path with its corresponding horizontal/vertical one. For reference, the angles that are most useful for transit map design are:

+45 degrees: moves up to the right
-45 degrees: moves down to the right
+135 degrees: moves up to the left
-135 degrees: moves down to the left

Note that the two points where the route lines change direction are at an angle of 22.5° from the vertical: exactly halfway between the only two options available if you lock all your paths to the grid. In short, a grid is an essential tool for laying out your diagram, but you can’t expect to be able to lock every single element to it. Knowing when you have to turn “Lock to Grid” off and place things manually is a big part of being a good map maker.

blog comments powered by Disqus
  1. friendlydc reblogged this from transitmaps and added:
    Useful adobe tutorial. Also, great tumblr all about transit maps!
  2. imnotgomenasai reblogged this from choppye
  3. choppye reblogged this from transitmaps
  4. ssjmaz reblogged this from transitmaps
  5. zabotage reblogged this from transitmaps
  6. pauldotey said: Excellent explanation. Thanks for this. It’s bookmarked in my design tips folder right away.
  7. compitello reblogged this from transitmaps and added:
    FYI…