Add an attribute thats inkscape:stockid="A name"
and inkscape should pick it up.
Is there a trick to adding new patterns to the patterns.svg file?
I created a new user pattern in an image using the objects to pattern
option and saved the file. I then cut out the <pattern></pattern> in
a text editor and added it into patterns.svg. It shows up in the
pattern drop list, but does not actually work.
Here is the pattern I created:
<pattern
patternUnits="userSpaceOnUse"
width="40"
height="40"
patternTransform="translate(0,0)"
id="pattern6158">
<path
sodipodi:nodetypes="cccccccccccccccccccc"
id="path6099"
d="M 20.5,0.5 C 20.5,13.531254 40.5,13.531255 40.5,0.5 M
0.5,0.5 C 0.5,13.531254 20.5,13.531255 20.5,0.5 M 30.5,10.5 C
30.5,17.015628 35.5,20.25 40.5,20.25 M 10.5 ,10.5 C 10.5,23.531255
30.5,23.531255 30.5,10.5 M 0.5,20.25 C 5.5,20.25 10.5,17.015628
10.5,10.5 M 0.5,20.5 C 0.5,33.531255 20.5,33.531255 20.5,20.5 M
20.5,20.5 C 20.5,33.531255 40.5,33.531255 40.5,20.5 M 30.5,30.40625 C
30.5,36.921878 35.5,40.1875 40.5,40.1875 M 0.5,40.1875 C 5.5,40.1875
10.5,36.921878 10.5,30.40625 M 10.5,30.40625 C 10.5,43.437506
30.5,43.437505 30.5,30.40625"
style="opacity:0.9;fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:#000000;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;marker:none;marker-start:none;marker-mid:none;marker-end:none;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;visibility:visible;display:inline;overflow:visible;enable-background:accumulate"
/>
</pattern>
Suggestions (or pointers) on what is wrong with this pattern? In the
original file it works file as a pattern. One note is that I edited
the width and height to allow the strokes to overlap without gaps, but
again, it works well as a pattern in the svg document.
-Rob A>
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Inkscape-devel mailing list
Inkscape-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/inkscape-devel