Pcb contour help

hi there, I created a round pcb in fritzing using inkscape to make a svg. in fritzing it looks perfect just as i want it, but when i upload the gerber export folder to pcb company their preview shows the file as rectangle pcb with my custom round pcb inside the rectangle. Now I am worried to order the pcb from the company in case it arrives as their standard preview rectangle shape which i cannot use. What to do please?

here is my fritzing file i designed

and here is the pcb company gerber preview

Up load the sketch for your board (the .fzz file, upload is 7th icon from the left in the reply menu.) Then I can create gerbers from the sketch and display them using gerbv (as can you) to verify them. Did you load your custom shape in the the sketch and get no error messages? ? Is the format of the outline svg correct? with both a board and silkscreen group? This looks like you have only silkscreen in the outline svg and it is missing (or misconfigured) and not loading the custom shape (although it is impossible to tell from pictures, always upload the sketch!)

Peter

I don’t know if i did my svg correctly as it is my first attempt, but here is the svg for inkscape
custompcbshape

i think this was the message i got when importing into fritzing:
Screenshot 2025-05-12 0158142

in inkscape it shows i made a silkscreen:

Nope. You need to read the error messages when Fritzing provides them.

It is telling you your svg is incorrect. That may not have made any difference because the contour.gm1 file appears to be correct.

It has the correct outline so in theory should mill the board correctly.

Your svg looks like this (which is incorrect.) The svg id needs to be board (not the Inkscape label!) and the path needs to be id boardoutline. It is best to ungroup the svg and then redo the groups with the correct names then save the svg as plain svg rather than Inkscape svg,

then regroup the svg like this

then save it as plan svg (not Inkscape svg which is the default) like this select save as instead of save.

then change the type from Inkscape.svg which is the default (and adds all kinds of Inkscapeisms to the svg some of which Fritzing objects to.) You should do this for all svgs intended for Fritizng. I prefer to ungroup the entire svg to remove all transforms (in the past Fritzing has had problems with transforms) but current versions are improving but it is still worth doing to avoid problems.

to plain svg like this

then save the svg. When the svg is loaded Fritzing is much happier

It doesn’t complain about the format of the svg this time. It doesn’t appear to make any particular difference though, the contour.gm1 file in gerbv looks identical

Try this svg (to download it, right click on it and select “save image as”

1d21e6584444679d0c6bf4a9b033cdc48b07a111-fixed

In Inkscape it should look identical to to my image above.

Note none of the hole in the silkscreen will be drilled, I am assuming they are just for alignment purposes and you are dragging holes in to your sketch if you actually want holes there. They can be milled in the outline.svg file but it is a lot more complex. Try the new svg and send the gerber output to your board house again and see if there viewer looks happier. I would say the either contour.gm1 file should correctly cut the board outline, but I’m not dead sure of that. The lack of the correct labels may have broken gerber processing in Fritzing although the contour.gm1 file looks OK to me it may not really be.

Peter

i was almost there :slight_smile:

  • Note none of the hole in the silkscreen will be drilled
    yah I figured i can add holes in fritzing, the white rings can be guide markers

Thanks i will try updating my file with the svg tomorrow morning and update on pcb production success.

I downloaded the .svg and replaced the one in my fritzing file, exported as gerber folder, uploaded to pcb manufacturer, and the file is as expected thanks for helping.

I think the error I was making was the incorrect id label for the svg. I will be making more crazy shapes in future so it will be good practice to get right :slight_smile:

1 Like

You can find an example in the core parts circle_pcb.svg

Fritzing\fritzing-parts\svg\core\pcb\circle_pcb.svg

It has all the correct groups, labels, and values for the fill and stroke for the necessary svg. To make slots or holes you need a single differential path (there used to be an article telling you how to do that but I couldn’t find it when last I looked.) There are also various posts in the forums over the years a search for pcb slot should find them all.

Peter

1 Like