How can I prevent some of the image information getting lost when exporting as SVG?
For example the USB-C Ports on the Adafruit USB C Breakout boards gets lost:
PNG export:
SVG export:
My project file:
ShowboxInterceptorFor3DCase.fzpz.fz (1.3 MB)
How can I prevent some of the image information getting lost when exporting as SVG?
For example the USB-C Ports on the Adafruit USB C Breakout boards gets lost:
PNG export:
Probably because some of the parts are misconfigured and don’t have correct layerIds. That causes the parts to not export as images. If you upload the sketch (your upload is only the .fz file from the sketch, what is required is the .fzz file which is the .fz file and the associated svgs) I will take a look at it and fix up what is broken.
Peter
Thank you, is this the correct format?
ShowboxInterceptorFor3DCase.fzz (195.5 KB)
I’m not really sure if I’m doing this correctly because when I save, Fritzing doesn’t automatically add the fzz extension. I have to do it manually.
Yes that is the correct format, although Fritzing should be adding the .fzz to the file (it does for me on Windows at least!)
Indeed the Adafruit part is incorrectly configured and thus won’t export as an image. The missing USB connector is outside the group breadboard and thus disappears.
Moving it inside the breadboard group corrects the problem
and then it exports correctly as a svg.
Replacing your part with this corrected part should fix the problem.
Adafruit USB Type C Breakout-fixed.fzpz (11.0 KB)
to do that you need to do a delete minus (which deletes the part but leaves the connecting wires present) then save the sketch, shutdown Fritzing (to really delete the part which only happens when Fritzing is shutdown) then reload the sketch and load the new part via File>open->Adafruit USB Type C Breakout-fixed.fzpz and then click on the end of the disconnected wire and move it on to the correct pin on the new part to make the connection (in all three views.) If you find more broken parts they need to be fixed the same way.
Peter
Thank you, this actually fixed it! I could not import the part directly though because I’m getting the error that it already exists. So I traced down the location of the SVG images and replaced those with the ones that you modified.
The issue with saving a project and it not appending the file extension automatically might be on Linux only.
That is the expected response (because it is correct.) That is why you need to delete the part with delete minus then close Fritzing, because the delete only really happens when Fritzing shuts down. I didn’t think, you also would need to delete the part from your mine parts bin before doing the shutdown as it is likely in there too and if it exists anywhere, the new copy won’t load because both parts are using the same moduleId (I was too lazy to change it.)
Peter
I couldn’t find a way to turly delete the part from the UI directly. At some point I just imported the entire Adafruit library from Github and there doesn’t seem to be an option to get get rid of them again. The only way I could find was deleting the individual files from disk.
I don’t think I have ever tried to delete a file from a bin import (nor delete the bin for that matter.) It is possible there is a bug there because you should be able to update just one element in a bin. However doesn’t look like you can. I just loaded my copy of the adafruit bin (which is old and doesn’t appear to have the USB C breakout) but I can’t delete a part.
the delete is greyed out. I also don’t know how or if you can delete a bin although there should be a way. You could do much the same as what you did by editing the part in new parts editor (but it may not let you save it with the same moduleId as the original, it will have a new moduleId and probably be in your mine parts bin.) Perhaps someone else may know what the correct way to delete a bin or just one element from a bin.
Peter