Looks good, a few issues:
- scaled wrong
In Inkscape
ungroup everything to remove the transforms.
edit->select all
file->Document properties->resize page to content->Resize page to drawing or selection
to resize the origin to 0 (you should do this before regrouping on all svgs for fritzing)
note in the scale section of document properties that the scale is 0.01042 not 10.41667 which it should be to get the viewbox from the current viewbox 0 0 1.319322 1.0042583 to thte correct 0 0 1310.9322 1004.2583 which we are going to correct here.
with the entire drawing selected record the current size in px
x 0 y 0 w 125.712 h 117.648
edit->preferences->Behaviour->transoforms and make sure
scale stroke width is ticked (I normally untick this so Inkscape doesn’t change stroke widths on scaling but here it needs to be ticked for this to work).
now in doc properties change the scale to 10.4166 and click on the drawing. The image disappears (and unselects as well)
drag a selection rectangle around the top left corner and you get a selection (your image at the new scale)
edit-select all
the tool bar in px says
x 0.000 y 117.531 w 0.126 h 0.118
change that back to
x 0 y 0 w 125.712 h 117.648
and the drawing is now as it was except the viewbox is now
0 0 1309.4964 1225.4964
almost as it should be (I usually set the view box values to exactly match the height and width at this point).
- remove the label id from the Ifr540 text
in xml editor
select svg:text=“label” and change id from label to text3683 (chosen at random from another text string). label is special and Fritzing will replace it with the chip label from the fzp file which isn’t what is wanted here.
-
drag a select rectangle to enclose the three white connector dots on the IRF520 part and delete them. (this is optional, it won’t hurt anything to leave them there, but it reduces clutter when looking for connectors they are labeled as connectors in xml editor)
-
Change the tool bar units to in then click on each of connector0-6 and verify they pins are on .1 boundaries (which they are, good work!)
-
Set terminal IDs for the 3 .1 gold pins. At present with only a pin defined the conneciton will be to the center of the pin. While that is fine for the screw terminals of the headers we want the connetion to be at the bottom of the pin, not the middle. So duplicate a rectangle (I used “upperstripe” just below connector2pin)
That created rect994 at the bottom of xml edior
in the tool bar change height and width to .01in (10 thou)
in xml editor select the transform (scale 1,-1) and delete the (scale 1,-1) (replace it with blanks) and hit set
the transform is removed and the rectangle moves up in the drawing. Still in xml editor
change height and width to 10
change style to fill:none;stroke-width:0
this creates an invisible rectangle which will become our terminal so now change id to
connector0terminal and set it to make the change. We now have the terminal but it is in the wrong place, so go to the tool bar and set x to 0.8 (from .210) which moves it to the x position of connector0pin-1 (which is the incorrect name, so in xml editor change the id to connector0pin and set it). Set y to 0 which moves it to the approximate end of the terminal where we want it. Repeat this step (by duplicating connector0terminal and changing x by .1 higher to move it to the next pin and renaming it connector1terminal)
Now we have the 3 terminals we need to align them properly (note, if you can make it work which I usually can’t this is easier in parts editor).
I notice that the pins all have a transform (scale -1) since I dislike transforms (as in my view should you) I removed them by replacing them with blanks in xml editor
connector2pin x 0.807 y 0.010
remove transform
x -0.839 y 2.341
change back to
x 0.807 y 0.010 via the tool bar and the pin is in the right place without the transform.
and it is back in position without the transform.
repeat for 1 and 2
Now with the pins in the proper place and without transforms move the terminals in to postion
because the pin is .032 wide and the teminal is only .01 wide, the x coord is a little larger to center the terminal on the pin. In my case I used x 0.817 instead of the 0.807 for the pin and .01 for y. The next two pins are .1 larger in x, so repeat twice more to get the pins correctly positioned.
Almost done, one last thing: set the layerId to breadboard.
edit->select all
object group
change the id of the resulting group to breadboard
and we are done.
file>save as->plain svg
save replace then exit Inkscape without saving (it will want to replace the plain svg with Inkscape svg which we don’t want.)
Now rename
IFR520_breadboard.svg
to
IFR520_breadboard.fzpz
because the forum sometimes has problems uploading svg files. When you download this change the name back to .svg and you are away. Hopefully the formatting in this is ok …
So all that said here is my corrected svg file (named .fzpz):
IFR520_breadboard.fzpz (51.7 KB)
change it back to svg to display it. Note it will have px in the font-sizes as I didn’t post process it, and the terminalId defintions will need to be added either via parts editor (or if it is me via a text editor ) to the fzp file for the part. I’ll probably be out for the rest of the day so response may be delayed.
Peter