4

When I try to offset my line with dashed stroke, the original and the offset path do not run in sync. The dashes should be side by side, but they are not. Screenshots:

enter image description here

enter image description here

Can someone help?

5

The quick answer is that you can't. Not with simply applying the dashed line to a stroke. Illustrator doesn't align dashes based on the document grid, it's based on the line and nodes.

If you want them to line up, you will have to manually separate either the outside or the inside line to shift the start point for the dashes.

*** Edit

Billy Kerr's answer below is MUCH better!

example

| improve this answer | |
11

Make a pattern brush like this from alternating 2 black filled rectangles, and 4 rectangles with no fill and no stroke.

Alternating Rectangles

Here's an example of the brush with settings, which I then applied to a path.

Path Example

For the corner settings, make sure to select "Auto-Slice".

enter image description here

| improve this answer | |
  • 1
    OMG! Of course! 🤩 – Wolff Sep 11 at 18:02
  • or that. Never even thought of that! It does get a little weird on the corners though. – Alith7 Sep 11 at 18:06
  • 1
    @Alith7 - Yeah, the corners mess up a bit, however it would be possible to create custom corners with a bit more work. – Billy Kerr Sep 11 at 18:09
  • @BillyKerr Will you accept my edits for one that doesn't look funky on the corners? – Alith7 Sep 11 at 18:19
  • 2
    thanks! Collaboration makes perfect! ;) – Alith7 Sep 11 at 21:11
4

You can try also this trick. It's a workaround and has its own problems like other workarounds.

enter image description here

  1. The original curve with a narrow stroke

  2. The stroke width is changed to 3 mm

  3. A copy is made with 3,75 mm wide stroke and dashes

  4. Version 2 is lifted on top and aligned with ver. 3. Ver. 2 is used as an Opacity Mask for 3.

You can edit stroke widths and dashing after releasing the opacity mask.

| improve this answer | |
  • That's not a bad solution either. – Alith7 Sep 11 at 20:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.