Is it possible to create a line symbol library?

Post questions on how to use or achieve an effect in Inkscape.
Barbara_WSL
Posts: 4
Joined: Wed May 25, 2016 12:21 am

Is it possible to create a line symbol library?

Postby Barbara_WSL » Wed May 25, 2016 12:31 am

Hello,

in Inkscape, it is possible to create a symbol library. I would like to create a symbol library with line symbols. So, when I draw a line, I can assign one of these line symbols to my line. Is this possible?

Thanks,
Barbara

User avatar
Espermaschine
Posts: 892
Joined: Thu Jun 05, 2014 9:10 pm

Re: Is it possible to create a line symbol library?

Postby Espermaschine » Wed May 25, 2016 12:33 am

Hi Barbara !

What do you mean with line symbols ?

Is it something like dashes and markers (stroke style) ?

Barbara_WSL
Posts: 4
Joined: Wed May 25, 2016 12:21 am

Re: Is it possible to create a line symbol library?

Postby Barbara_WSL » Wed May 25, 2016 12:37 am

Examples of line symbols:
- Dashed red line with certain width
- Solid green line with certain width

User avatar
Espermaschine
Posts: 892
Joined: Thu Jun 05, 2014 9:10 pm

Re: Is it possible to create a line symbol library?

Postby Espermaschine » Wed May 25, 2016 12:43 am

A solid green line can be made by giving your line a stroke of whatever width and color you like.

A dashed red line is possible by using dashes in the Stroke Style dialogue.

For more complex symbols you can make custom markers or use 'Pattern along path'.

http://tavmjong.free.fr/INKSCAPE/MANUAL ... oke-Dashes
.
Attachments
dashes.jpg
dashes.jpg (41.98 KiB) Viewed 3760 times

Barbara_WSL
Posts: 4
Joined: Wed May 25, 2016 12:21 am

Re: Is it possible to create a line symbol library?

Postby Barbara_WSL » Wed May 25, 2016 1:00 am

My question is not how to create line strokes. My question is how to create predefined line strokes that can be used as templates. For example, I have predefined line strokes for river, border, street, railway, and so on. When I draw a line, I would like to assign one of these predefined strokes to it.

User avatar
Espermaschine
Posts: 892
Joined: Thu Jun 05, 2014 9:10 pm

Re: Is it possible to create a line symbol library?

Postby Espermaschine » Wed May 25, 2016 1:10 am

Hmm, that sounds a bit more complex.
Its always good to know the context of the project.
Rivers, street, railways.... that sounds like a map project.

Maybe something like Pattern along path in companion with a Bend LPE can give you the result you are looking for.
I think we need to know more about your project.

Moini
Posts: 3381
Joined: Mon Oct 05, 2015 10:44 am

Re: Is it possible to create a line symbol library?

Postby Moini » Wed May 25, 2016 1:13 am

You could create one object for each style, put it into the file in a place off the page (or use in the map's legend), then copy-paste the style of the corresponding object, using Ctrl+C, Ctrl+Shift+V.
Something doesn't work? - Keeping an eye on the status bar can save you a lot of time!

Inkscape FAQ - Learning Resources - Website with tutorials (German and English)

Barbara_WSL
Posts: 4
Joined: Wed May 25, 2016 12:21 am

Re: Is it possible to create a line symbol library?

Postby Barbara_WSL » Wed May 25, 2016 1:36 am

Thank you for your replies! I think they answer my question at the moment.

v1nce
Posts: 696
Joined: Wed Jan 13, 2010 4:36 am

Re: Is it possible to create a line symbol library?

Postby v1nce » Wed May 25, 2016 9:17 am

the lack of style browser is one of the top weakness of inkscape imho

Moini
Posts: 3381
Joined: Mon Oct 05, 2015 10:44 am

Re: Is it possible to create a line symbol library?

Postby Moini » Wed May 25, 2016 9:34 am

Good that it's a Google Summer of Code project this year, then ;)
Something doesn't work? - Keeping an eye on the status bar can save you a lot of time!

Inkscape FAQ - Learning Resources - Website with tutorials (German and English)

User avatar
brynn
Posts: 10309
Joined: Wed Sep 26, 2007 4:34 pm
Location: western USA
Contact:

Re: Is it possible to create a line symbol library?

Postby brynn » Fri May 27, 2016 9:46 am

This is the first of a 3-part tutorial: http://verysimpledesigns.com/vectors/in ... rders.html

Cranca
Posts: 1
Joined: Wed Feb 15, 2017 7:14 pm

Re: Is it possible to create a line symbol library?

Postby Cranca » Wed Feb 15, 2017 7:26 pm

I know it comes a bit later for Barbara, but for futrure reference I found this:
https://medium.com/@xaviju/creating-you ... .rjosmzwji

User avatar
Xav
Posts: 1209
Joined: Fri May 08, 2009 1:18 am
Location: UK
Contact:

Re: Is it possible to create a line symbol library?

Postby Xav » Wed Feb 15, 2017 7:50 pm

I don't think that really addresses Barbara's original request (essentially for a simple way to store and re-apply stroke parameters), but looks like a useful resource nonetheless.
Co-creator of The Greys and Monsters, Inked - Inkscape drawn webcomics
Web SiteFacebookTwitter

Adnarecaridis
Posts: 1
Joined: Thu Mar 09, 2017 9:13 pm

Re: Is it possible to create a line symbol library?

Postby Adnarecaridis » Thu Mar 09, 2017 9:21 pm

I myself looking for that option - to be able to migrate from Illustrator were it is rather easy to do. You can make different lines of different types to add into a library and then just click in the library to use it. Like making a leaf (or any symbol or just a special line), then when drawing it will be long or short depending of the distance you make your line!

Moini
Posts: 3381
Joined: Mon Oct 05, 2015 10:44 am

Re: Is it possible to create a line symbol library?

Postby Moini » Wed Mar 15, 2017 11:49 am

In Inkscape, the stroke styles need to be added to the preferences file. I think Brynn had a link to a post that explained how...

Basically, you'd need to create your dash pattern by editing the xml in the svg file, like this:
viewtopic.php?t=2400
More info here:
http://tutorials.jenkov.com/svg/stroke. ... dashoffset

Then you can add that new dash pattern into the appropriate place inside your preferences.xml file.
Something doesn't work? - Keeping an eye on the status bar can save you a lot of time!

Inkscape FAQ - Learning Resources - Website with tutorials (German and English)


Return to “Help with using Inkscape”