Over all pretty good but a few problems. The hole size in pcb is too small:
Hole size in gerber drill.txt file:
; NON-PLATED HOLES START AT T1
; THROUGH (PLATED) HOLES START AT T100
M48
INCH
T100C0.020505
indicating the hole will be 0.020 in when the pin is 1.04mm (about 0.047in) so the module won’t fit. The layerIds are missing in breadboard and schematic svgs. This means the part won’t export as an image (it will be omitted from the image.) I went through and cleaned up the part like this:
pcb
rescale (to get the part to the standard scale)
Removed the text. The reason for this is that the user can add the text to pcb in the sketch if they want it, but must modify the part to remove the text if they don’t want it. So in general don’t include text in the pcb view. Adjusted the hole sizes to be 0.047in. In Inkscape (it is different for the other svg editors) pcb hole size is set by
hole-size = pad-diameter + (2 * stroke-width)
so I set stroke width to 20 (20 thou) and the diameter to 0.087in which will create a hole size of 0.047in which should fit the pin.
schematic
I recreated schematic with the Inskcape Fritzing schematic extension which creates schematics at the correct scale and with the correct colors and font sizes (normally schematic pins are set to grey, color can be set but usually is not.)
breadboard
rescaled and set the layerId to breadboard.
fzp file
Change label to M (for module)
Replace icon svg with breadboard
remove terminalIds from breadboard (it isn’t in the svg and isn’t needed!)
I was looking for the IRM-03, as I had not found anything I made this from the provided IRM-05:
[file removed to avoid confusion]
revised version here
For the PCB I used a scale of 100 dots per millimetre instead of the usual 1000 dots per inch. Could this become a potential problem? The printout of the PCB on a bit of paper worked well so far.
Also I noted that the part somehow offers me variants, which is okay for the IRM-05 but it does as well offer some variants of the Hilink power supplies? How does this happen, is it linked to the family?
Is there an easy way to rather have editable voltage or voltage variants?
No. It is desirable that the viewbox be 1/1000 as specified in the graphics standards but in practice it will work just fine as the svg scaling automatically compensates. Dimensioning the svg in px rather than in or mm can be a problem but you haven’t done that. FritzingCheckPart.py only issues warnings for the scale no errors so the part appears fine:
Warning 32: File
‘svg.breadboard.MW-IRM-03-05_02d58bc319d1e0b5412c1291a19f7c29_13_breadboard.svg.bak’
At line 2
Scale is not the desirable 1/1000 ratio from width/height to
viewBox width/height.
Warning 32: File
‘svg.pcb.MW-IRM-03-05_02d58bc319d1e0b5412c1291a19f7c29_13_pcb.svg.bak’
At line 2
Scale is not the desirable 1/1000 ratio from width/height to
viewBox width/height.
it is only a warning because it doesn’t affect correct operation (but doesn’t meet the graphics standards.) There is potentially a problem in pcb in that the hole size is 0.031445in, for a 0.1in header (if you chose to mount the part on a header) the size should be 0.038in. The pin size may or may not be correct for the part I didn’t check.
The multiple options in Inspector are indeed a function of the family name. Any part with the same family name will be listed as an option in Inspector. There aren’t currently any guidelines on family names (although discussions are happening very slowly on github) on that or a variety of other parts policy issues.
If the text labels in breadboard or schematic are of the name “label” they will be substituted from the property name chip label in the fzp file
<property name="part number">74x125</property>
which can be used to change the voltage on a part. This tutorial covers various of these issues