Easy-to-follow video tutorials help you learn software, creative, and business skills.Become a member

Creating perfect dashed lines

From: Illustrator CS5 New Features

Video: Creating perfect dashed lines

When it comes to applying Strokes in Illustrator, we have several different settings that we can apply to adjust the appearance of that Stroke. One of those setting is something called the Dashed setting. Really, what the Dashed setting does is it turns a Stroke on and off at intervals to make it appear as if the Stroke is broken, or a Dashed Line. However, because dash lines use precise measurements, you can often get unsatisfactory results. To demonstrate what I mean, I am going to create a new document here, just a blank document, and I am going to draw a rectangle on my artboard.

Creating perfect dashed lines

When it comes to applying Strokes in Illustrator, we have several different settings that we can apply to adjust the appearance of that Stroke. One of those setting is something called the Dashed setting. Really, what the Dashed setting does is it turns a Stroke on and off at intervals to make it appear as if the Stroke is broken, or a Dashed Line. However, because dash lines use precise measurements, you can often get unsatisfactory results. To demonstrate what I mean, I am going to create a new document here, just a blank document, and I am going to draw a rectangle on my artboard.

Let me open up my Stroke panel. In fact, I'll bring the Stroke panel out over here so we can take a better look at it. I'll increase the Stroke Weight somewhat, to around 6 point. Next, I'll turn on the Dashed Line setting. Illustrator provides me with three groupings of dashes and gaps. The dash refers to the visible part of the Stroke, and the gap refers to the part of the Stroke that is missing. The way that Illustrator works that if you specify just one dash and one gap, all the other dash and gaps pick up the same values. In other words, this is the same as seeing 4-5, 4-5, 4-5.

If they don't specify a gap at all - I will go ahead, and I will delete that setting - Illustrator picks up the gap setting from the dash setting, meaning that right now, this would be 4, 4, 4, 4, 4, and 4. But to better illustrate the point that I want to make, I am going to specify a dash value of 12 points, and I'll specify a 6 points for the gap. Let's turn our attention to the appearance of the Dashed Lines on this Path. By taking a look at the corners here, you can see that they don't really line up correctly. As the dashes get to the corner itself, they don't match up or line up very well.

The reason for this is because Illustrator starts at one point in the Path. In this case, it starts right over here, and it gives me a 12 point dash, a 6 point gap, and then, again, a 12 point dash and a 6 point gap and repeats that along the Path. If the width of my Path is not exactly divisible by these values right here, I end up with a dash that may not end perfectly on this end of the Path. This has always been a problem inside of Illustrator, and it applies to all types of Paths, not just rectangles. For example, if I were to draw an ellipse right now and have the same Dashed Line applied to that.

I'll deselect it so that you can see that where the Path starts and ends. I have an odd looking dash, because the exact circumference of the circle does not match up with the exact settings to the dash and the gap. Well, now in Illustrator CS5, we do have a setting that will fix this. I'll select these two Paths right here, and then in my Stroke panel, I'll choose this option over here. This aligns dashes and the corners so that they adjust perfectly along the Path. Notice now that all the corners appear even on this rectangle and more importantly, for this circle right now, all the dashes appear even as well.

What's really cool about this setting though is that it applies not just for circles and for rectangles, but for other shape as well. Let's take a closer look. I am going to go to this document right here, and I am going to zoom in this flower here. Say I want to apply a Dashed Line to the outside of this flower. Well, I'll select the Path right here, and I'll turn on the Dashed Line setting. Notice that now since this option is chosen in my Stroke panel, all of the corners of this flower line up very evenly. So that you can see what this would have looked like in previous versions of Illustrator, I'll choose the other option here, and you could see here the Dashed Line does not necessarily line up evenly along each petal of his flower.

So, with this fine control that we now have inside of Illustrator CS5, you can get really nice Dashed Lines.

Show transcript

This video is part of

Image for Illustrator CS5 New Features
Illustrator CS5 New Features

30 video lessons · 19633 viewers

Mordy Golding
Author

 
Expand all | Collapse all
  1. 9m 0s
    1. Welcome
      1m 21s
    2. Comparing Illustrator CS4 and Illustrator CS5
      7m 39s
  2. 27m 2s
    1. Defining perspective grids
      7m 48s
    2. Drawing artwork in perspective
      8m 46s
    3. Mapping flat artwork to perspective grids
      10m 28s
  3. 15m 36s
    1. Creating variable-width strokes
      4m 26s
    2. Using variable-width profiles
      4m 26s
    3. Creating perfect dashed lines
      3m 30s
    4. Easily adding arrowheads to strokes
      3m 14s
  4. 16m 8s
    1. Simulating real brush strokes with the Bristle brush
      11m 46s
    2. Using enhanced art and pattern brushes
      2m 55s
    3. Applying variable-width settings to brushstrokes
      1m 27s
  5. 12m 10s
    1. Drawing Behind and Draw Inside Drawing modes
      4m 17s
    2. Creating complex art easily with the Shape Builder tool
      6m 5s
    3. Easily joining multiple paths
      1m 48s
  6. 11m 25s
    1. Working with symbols more easily
      6m 56s
    2. Using 9-slice scaling options with symbols
      4m 29s
  7. 7m 55s
    1. Using the new Artboards panel
      4m 13s
    2. Setting individual artboard rulers
      2m 35s
    3. Printing artboards more easily
      1m 7s
  8. 11m 47s
    1. Creating pixel-perfect web graphics
      3m 43s
    2. Creating crisp readable text for the web
      1m 58s
    3. Quickly exporting individual slices
      1m 50s
    4. Integrating with Adobe Flash Catalyst
      4m 16s
  9. 10m 11s
    1. Select artwork through other objects
      2m 36s
    2. Using new paste commands
      1m 57s
    3. Applying resolution-independent raster effects
      2m 55s
    4. Specifying transparency within gradient mesh
      1m 8s
    5. Creating editable trim marks
      1m 35s
  10. 17s
    1. Goodbye
      17s

Start learning today

Get unlimited access to all courses for just $25/month.

Become a member
Sometimes @lynda teaches me how to use a program and sometimes Lynda.com changes my life forever. @JosefShutter
@lynda lynda.com is an absolute life saver when it comes to learning todays software. Definitely recommend it! #higherlearning @Michael_Caraway
@lynda The best thing online! Your database of courses is great! To the mark and very helpful. Thanks! @ru22more
Got to create something yesterday I never thought I could do. #thanks @lynda @Ngventurella
I really do love @lynda as a learning platform. Never stop learning and developing, it’s probably our greatest gift as a species! @soundslikedavid
@lynda just subscribed to lynda.com all I can say its brilliant join now trust me @ButchSamurai
@lynda is an awesome resource. The membership is priceless if you take advantage of it. @diabetic_techie
One of the best decision I made this year. Buy a 1yr subscription to @lynda @cybercaptive
guys lynda.com (@lynda) is the best. So far I’ve learned Java, principles of OO programming, and now learning about MS project @lucasmitchell
Signed back up to @lynda dot com. I’ve missed it!! Proper geeking out right now! #timetolearn #geek @JayGodbold
Share a link to this course

What are exercise files?

Exercise files are the same files the author uses in the course. Save time by downloading the author's files instead of setting up your own files, and learn by following along with the instructor.

Can I take this course without the exercise files?

Yes! If you decide you would like the exercise files later, you can upgrade to a premium account any time.

Become a member Download sample files See plans and pricing

Please wait... please wait ...
Upgrade to get access to exercise files.

Exercise files video

How to use exercise files.

Learn by watching, listening, and doing, Exercise files are the same files the author uses in the course, so you can download them and follow along Premium memberships include access to all exercise files in the library.


Exercise files

Exercise files video

How to use exercise files.

For additional information on downloading and using exercise files, watch our instructional video or read the instructions in the FAQ.

This course includes free exercise files, so you can practice while you watch the course. To access all the exercise files in our library, become a Premium Member.

Join now "Already a member? Log in

Are you sure you want to mark all the videos in this course as unwatched?

This will not affect your course history, your reports, or your certificates of completion for this course.


Mark all as unwatched Cancel

Congratulations

You have completed Illustrator CS5 New Features.

Return to your organization's learning portal to continue training, or close this page.


OK
Become a member to add this course to a playlist

Join today and get unlimited access to the entire library of video courses—and create as many playlists as you like.

Get started

Already a member?

Become a member to like this course.

Join today and get unlimited access to the entire library of video courses.

Get started

Already a member?

Exercise files

Learn by watching, listening, and doing! Exercise files are the same files the author uses in the course, so you can download them and follow along. Exercise files are available with all Premium memberships. Learn more

Get started

Already a Premium member?

Exercise files video

How to use exercise files.

Ask a question

Thanks for contacting us.
You’ll hear from our Customer Service team within 24 hours.

Please enter the text shown below:

The classic layout automatically defaults to the latest Flash Player.

To choose a different player, hold the cursor over your name at the top right of any lynda.com page and choose Site preferencesfrom the dropdown menu.

Continue to classic layout Stay on new layout
Exercise files

Access exercise files from a button right under the course name.

Mark videos as unwatched

Remove icons showing you already watched videos if you want to start over.

Control your viewing experience

Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.

Interactive transcripts

Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.

Are you sure you want to delete this note?

No

Your file was successfully uploaded.

Thanks for signing up.

We’ll send you a confirmation email shortly.


Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

Keep up with news, tips, and latest courses with emails from lynda.com.

Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

   
submit Lightbox submit clicked
Terms and conditions of use

We've updated our terms and conditions (now called terms of service).Go
Review and accept our updated terms of service.