Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
tutorial:digitizing_with_inkscape [2012/02/21 04:31] mcmastertutorial:digitizing_with_inkscape [2016/10/06 18:29] (current) mcmaster
Line 7: Line 7:
 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. 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. +I am as of the time of this writing I use 0.48, although parts of this may have been written for 0.47.  0.47 is not recommend, see warning at bottom.
  
 ====== Configure inkscape ====== ====== Configure inkscape ======
Line 16: Line 15:
 {{:mcmaster:tutorial:inkscape:doc_properties.png}} {{:mcmaster:tutorial:inkscape:doc_properties.png}}
  
-Edit => Preferences +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.+
  
 +    * 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 ====== ====== Create a new document ======
Line 26: Line 26:
 And save it somewhere. And save it somewhere.
  
-File => Document Preferences +File  Document Preferences {{:mcmaster:tutorial:inkscape:doc_properties_snap.png}}
-{{:mcmaster:tutorial:inkscape:doc_properties_snap.png}} +
-  * Grids: Spacing X: 1.0000 +
-  * Grids: Spacing Y: 1.0000 +
-{{:mcmaster:tutorial:inkscape:pen_style.png}} +
-  * Snap: Snap to grids: Always snap +
-Without this it will be difficult to get polygons to line up predictably.+
  
 +    * Grids: Spacing X: 1.0000
 +    * Grids: Spacing Y: 1.0000
  
 +{{:mcmaster:tutorial:inkscape:pen_style.png}}
  
-====== Add an image  ======+    * Snap: Snap to grids: Always snap
  
-Create a new layer to store the image.+Without this it will be difficult to get polygons to line up predictably.
  
-FIXME: I forget how to do this nicely+====== Add an image ======
  
-As workaround save and close.  Open up a text editor and find the layer you just inserted.  Make it look something like this:+Create new layer to store the image.  File→import and select the image you want.  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.  Go fo file → Document preferences and hit "fit size to selection" The document will not be the size of this image.
  
-  <g +Repeat for additional layers.  Align the additional layers by setting transparency to 50% on the layer selection box so that you can make a reasonable match.
-     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 ======
- +
-====== 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". Start by creating and selecting a new layer.  If you have a top metal image you might want to create "m1' or "metal".
Line 86: Line 66:
  
 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. 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.
 +
 +Although clicking at corners is (possibly) the most intuitive its not the most accurate.  Instead, start by clicking in a corner and then click along the edge.  This will allow you place the dimension more accurately since you can focus on centering it on the line instead of the jumble at the corner.  This works because when snapping to right angle only one dimension is tracked at a time to make a line.
 +
 +The higher the resolution you can work at the more accurate and quicker you'll likely be.  I constantly zoom in and out to work quickly.
 +
 +===== Large / complex polygons =====
 +
 +Multiple polygons can be combined together.  This can help in drawing very large polygons without having to do everything in one go.  Select both polygons and then click Path  Union.  You may want to delete some of the extra points it creates.  However, if you are careful with how you create your shapes you shouldn't be generating extra points.
 +
 +I recommend against forming complex polygons (ex: a doughnut), in part because JSSim can't currently handle them.  If you don't care about JSSim this is probably not a big deal.
 +
 +====== Issues ======
 +
 +Inkscape 0.47 and perhaps some other version has a bug where your won't get 90 degree snap on the last point.  See [[https://bugs.launchpad.net/inkscape/+bug/522335|https://bugs.launchpad.net/inkscape/+bug/522335]] I'm currently using 0.48.3.1 which seems to have this bug fixed.
 +
 +====== References ======
 +
 +    * Digitizing ICs with Inkscape video tutorial (65CE02): http://youtu.be/RW-EUDh4XAA
 +    * Some examples
 +      * ST 24C02 clock: http://uvicrec.blogspot.com/2012/07/st-24c02-sector-17r-clock.html
 +      * William's SC1: http://uvicrec.blogspot.com/2013/03/williams-special-chip-1-sc1.html
 +    * https://www.youtube.com/watch?v=6N9ofyDUjaU
 +      * Someone said to take a look at this
  
 
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