Custom copper pad

You only need to load the svgs you want to change, although that may be all of them if you add connectors, because connectors need to be defined in all three views. As well your best bet is to save the svg as plain svg (Inkscape svg is the default and sometimes Fritizng doesn’t like the additions!) like this

and as noted then either run FritzingCheckPart.py or manually edit the svg file with a text editor to remove the px from font-size (which Inkscape adds for CSS compliance and which Fritzing objects to.) FritzingCheckPart.py if run against the .fzp file will also flag errors in the part definition (it can also process svg files, but without the .fzp can’t flag errors.) As noted if you add connectors you also need to define the connector in the .fzp file before it will be recognized. To do it via a text editor you need to change

    <text
      x="505.0"
      y="755.0"
      font-family="Droid Sans"
      font-size="60px"
      fill="#000000"
      id="label"
      text-anchor="middle">Pycom LoPy4</text>
    <text

to

    <text
      x="505.0"
      y="755.0"
      font-family="Droid Sans"
      font-size="60"
      fill="#000000"
      id="label"
      text-anchor="middle">Pycom LoPy4</text>
    <text

I usually use a global replace to do it but you do need to check you don’t have any instances of px which aren’t in a font size as the global replace will do all of them and may make unintended changes. Always happy to help people learn to make parts we need more people that can do so!

Peter

FritzingCheckPart.py

is this a separate software, or a plugin within inkscape.
yeah i’m hoping i can learn, and maybe be able to help others on this forum eventually. you all have been extremely helpful, and very quick with your responses. which is very helpful

Its separate software available here:

Peter

ok got home from work. i got files to unzip. i pulled a schematic view up and edited just a little bit. i hit “save as” and now im downloading the. Fritzigchechpart program.
so i open it up in here, and then what happens next?

You will need python on and lxml on your machine. The instructions are in the readme on github. I usually use cygwin, but there is also a Windows version of python3 available and that should work as well.

Peter

ok so do i load the new fritzig file into python somehow. ? i guess my dumb brain is not making the connection

It is a command line program, run it like this (this is in Cygwin on Win10) where is the fzp file for the part:

$FritzingCheckPartw.py part.Pycom-LoPy4-tht_1.fzp

**** Starting to process file Startup, no file yet

**** Starting to process file part.Pycom-LoPy4-tht_1.fzp

**** Starting to process file svg.breadboard.Pycom-LoPy4-tht_1_breadboard.svg.bak

**** Starting to process file svg.schematic.Pycom-LoPy4-tht_1_schematic.svg.bak

**** Starting to process file svg.pcb.Pycom-LoPy4-tht_1_pcb.svg.bak

File
‘part.Pycom-LoPy4-tht_1.fzp.bak’

This is a through hole part as both copper0 and copper1 views are present.
If you wanted a smd part remove the copper0 definition from line 38

Peter

im not familiar with python 3. i know a little arduino IDE a little.
but i’m sorry i’m still having trouble wrapping my head around this line program step. is this converting the file so fritzing can read it ? am i importing a file into python and then sending it somewhere? i apologize for being a little slow at picking this up

The script is reading the xml and svg files and checking between the fzp file and the various svgs and flagging errors that it finds. Since it is dealing with the xml, it will issue error messages that reference the xml, and you need to be familiar enough with the xml to figure out what they mean (which isn’t particularly easy.) Your best bet is likely to post the error message and the .fzpz file that produced it and I can tell you what is wrong and how to fix it. If you are unfamiliar with python, getting lxml installed (it isn’t loaded by default) may be a little exciting. Uploading your .fzpz file here (upload is 7th icon from the left in the reply menu) may be your best bet and I can run it through FritzingCheckPart.py and tell you how to fix the errors.

Peter