Tell me more ×
Graphic Design Stack Exchange is a question and answer site for professional graphic designers and non-designers trying to do their own graphic design. It's 100% free, no registration required.

I have been using Inkscape for some months now to edit and maintain a transit map of San Francisco. For the most part I am very comfortable editing paths, removing and adding nodes, snapping to grids and objects and the like . . .

But what I have yet to figure out, is how to bring multiple lines together, in parallel, either stuck together along their edges or separated at a constant distance, like railroad tracks.

One technique would seem to be to create a wider path objects beneath a narrower path object, then snap their nodes together, to create a path with an outline, but I would really like to combine two or more lines in parallel, as you often see on transit maps. If anyone can shed some light on my desire, I owe them a cookie!

share|improve this question
The technique you mention in your 3rd paragraph sounds elegant & effective. Is there a particular reason why you need 2 parallel paths instead of 2 overlapping paths? They will appear identical to the end user (unless you need transparency in the middle). – Farray May 10 '11 at 14:16
In practice, I have adopted the layered lines technique proposed in the question. The only "shortcoming" would be that if two sets of parallel lines joined, the lines in the inner angle would be clipped at the intersection. – dannyman Aug 19 '11 at 17:43

2 Answers

So far, the "best" way I have found is the "Stroke to Path" technique here:

http://tavmjong.free.fr/INKSCAPE/MANUAL/html/Paths-Creating.html#Stroke-To-Path

Unfortunately, the transformed paths, while pretty, aren't practical to manage. So for a transit map I think I would:

  1. Create a layer for the rail paths.
  2. Lay the rails out as solid-line paths.
  3. Copy the rail path to a new layer.
  4. Toggle visibility of the original rail layer off.
  5. On the new layer, select all objects, and apply the "Stroke to Path" technique.

Then, if I need to revise the map, I can update the rail path layer, then delete and re-create the "Stroke to Path" layer.

I'll leave this question "open" for a better solution. :)

share|improve this answer

I'm unfamiliar with inkscape but it seems like a simple grouping of the two lines could help you. This way they are united without being one closed object. this, however is not practical if you wish to scale since the distance between the lines gets scaled accordingly, too. A least it is useful for moving entire roads etc. It could also prove useful to nest the groups.

In illustrator you can create patternbrushes where you can define a graphic that gets applied to the line. This graphic could be that of two parallel lines at a set distance. This enables you to change the trayectory of the road/railtrack-path without affecting the road width.

share|improve this answer
Thanks. It turns out, Inkscape doesn't support brushes yet. You can apply a path to another path, but I can't get this to create parallel lines. – dannyman Apr 1 '11 at 21:09
oh. sorry to hear this. I´ll research some more next time – leugim Apr 2 '11 at 3:17

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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