I’ve been trying to get this custom cutout (donut) style PCB shape into Fritzing for a few days now and have tried everything. I don’t know what is going wrong and I’ve followed all of the guidelines from the main Fritzing website about custom PCB shapes but it’s hard to find resources about custom cutout shapes.
A link to the .SVG file is below and any help would be greatly appreciated!
You need the layer: “board” with the object “boardoutline”. this needs to be a single object.
Layer: “silkscreen” is the top of the board and the Layer: “silkscreen0” is the bottom, Silkscreens can have as many objects as you would like.
Thanks for the quick response! I’m still trying to import and getting errors and Fritzing turns back just a circle without the cutout. I followed the template that you shared.
Does it work when you try to import it into Fritzing? I looked into the stroke issue and fixed it but I’m still getting an error in Fritzing where the circle imports but the cutout center does not.
Update: All I did is use your drawing and change the stroke width on the silkscreens… I don’t us Illustrator, makes it difficult to figure out why your drawing does not work.
Does it work? Did you figure out what the problem was?
Update: I notices that in the corlDRAW, in the svg metadata, that it give the image size “width=“11.5991in” height=“11.5991in””, but for the Illustrator image it does not… I don’t know if it has anything to do with it and I am not sure if Fritzing requires it.
OK, what I did was open it in Inkscape, Files/Document properties/resize page to dwg, save as plain svg, and it now works.
I noticed the resize thing before. I resized/shrunk the MPX2010, because it was smaller than the actual dwg, and it stopped working, so I put it back and it worked fine.
Unless this is one of those things were we edit and save it in InkS and it now works.
Old_Gray, we want to know why he can’t get it to work when exported from Illustrator… it should work… I want to know so if someone else has the same problem I know how to answer it.
@andre How do you get the custom PCB image, drawn up in Adobe Illustrator to work in Fritzing?
@iamtheream, This is the Raspberry Shield from the core parts, drawn in AI: http://imgh.us/raspberrypi-pcb-shape.svg , maybe you can figure out something from this… Import it, then export it… see if you can duplicate it… Got to be something simple…
I install AI-CC on my PC… I figured out what your problem is, but I cannot figure out how to fix it. You are more into AI than I am so maybe you know how to fix it. If I got this right… You need to load a DTD file into the XML structure that will add “xml:space=“preserve” width=”###" height="###""
I inserted; xml:space=“preserve” width=“11.5991in” height=“11.5991in” into your file and it worked. I tried to research on how to load DTD files into the XML files in AI and can’t figure it out. Apparently, there are several ways to do it but I can’t figure any of them out.
I have been kicking this thing around for hours and I still can’t figure out how to add “height and width” into the .svg file. I did find a blog that stated; "The width and height values are missing from the first svg tag (highlighted in code above). You can save your SVG file, and then add these values into the tag yourself via a text editor "
There has got the be a way to add these .svg tags in there…
That’s awesome! It totally shows up now and works! So weird how Illustrator exports these .SVGs. I guess I’ll just have to add a similar xml:space="preserve" width="11.5991in" height="11.5991in" tag in each first SVG file.
I don’t know what version you are using… I was reading that it was a bug in cc 2016, and that cc 2015 did not have the missing tags. There is an svgFileFormat plugin in the core files… unable to open it. Now I know why people were have problems with AI and Fritzing… I believe all Fritzing .svg.s require those tags.