This is an old revision of the document!


Prereqs

You'll of course need inkscape installed

You'll need an image. .png's work, probably other formats too. It should be as straight as possible. Use a tool like the Gimp to correct rotation if necessary. It should be straight enough so that a line from top/bottom or left/right is straight enough for your purposes.

This assumes that you have a 90 degree routed sample. You'll have to make tweaks but nothing major for something not of that nature.

I am as of the time of this writing us a mix of Inkscape 0.47 and 0.48.

Configure inkscape

Launch Inkscape and lets get started

Edit ⇒ Preferences

  • Pen: Create new objects with: Last used style
  • Shapes: Rectangle: Create new objects with: Last used style

Without this every time you create a new polygon you'll have to keep re-selecting things.

Create a new document

And save it somewhere.

File ⇒ Document Preferences

  • Grids: Spacing X: 1.0000
  • Grids: Spacing Y: 1.0000

  • Snap: Snap to grids: Always snap

Without this it will be difficult to get polygons to line up predictably.

Add an image

Create a new layer to store the image.

FIXME: I forget how to do this nicely

As a workaround save and close. Open up a text editor and find the layer you just inserted. Make it look something like this:

<g
   inkscape:groupmode="layer"
   id="layer2"
   inkscape:label="background"
   style="display:inline"
   sodipodi:insensitive="true">
  <image
     sodipodi:insensitive="true"
     y="0"
     x="0"
     id="image12"
     height="9295"
     width="9515"
     xlink:href="stitch.png"
     sodipodi:absref="stitch.png" />
</g>

Save and re-open the document. You should now be able to show/hide that image as a layer. I suggest also locking it so that you don't move it around.

Create some polygons

Start by creating and selecting a new layer. If you have a top metal image you might want to create “m1' or “metal”.

Select the pen tool (“Draw Bezier curves and straight lines). This toolbar is by default on the left.

Select the “Use straight lines” box at the top.

Select a fill at the bottom. Consider using Mead/Conway colors so your diagrams are easy to read.

Click once in a corner of the polygon, preferably on a long side. Inkscape will then snap to the closest 90 degree angle as you move it away. Click on the next point on the polygon and for each additional point up to the last one. When you would create the final point (not the final edge) instead click on the original point. This will close the polygon and create an aligned final edge.

Repeat for additional polygons.

Tips

Setting polygons to half transparent can make them easier to line up. However, you may have to adjust them to full brightness by selecting all before export

Merging .svgs isn't as clean as one might hope. Without a special tool you probably can't have two people work on the same layer in the same file. Either have them work on different layers or you'll have to have someone manually merge them together which may cause more work than it solves.

 
tutorial/digitizing_with_inkscape.1329798666.txt.gz · Last modified: 2013/10/20 14:59 (external edit)
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution 4.0 International
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki