Parts Editor: problem with .svg filenames
Hello -
When I create a part and then do an edit to one of the .SVG files in Inkscape and try to reload the .SVG file in the Part editor, the file name is shown incorrectly with a bunch of added numerals. It does not load the edited version, but the old version if I select the file with the corrupted name (which is the only one visible). Inkscape and Windows XP both show the normal filename. Maybe the Fritzing file browser is looking for a filename length that is supported by a different OS?? Then maybe instead of reporting an error when the bogus file is selected, it is just abandoning the file load and reverting to the original?
Anyone else seeing a problem like this?
Oh, there was another issue where I had three lines of text in my image and one the third was being placed ontop of the second. Strange...
Hi C,
I'm not sure from your description exactly what the order of events was, beyond trying to edit an SVG after it had already been loaded into a part in Fritzing. So I will give you some general information and hope it speaks to your issue.
When you load an SVG into the parts editor, fritzing makes a local copy of it, and adds a bunch of numbers to the filename to ensure the uniqueness of the filename. Furthermore, the Fritzing part definition file (.fzp) now expects to find (load) that renamed local copy (not the original SVG).
Once that local copy has been made, you can basically no longer edit it with Inkscape (or Illustrator). Inkscape (and Illustrator) and Fritzing all have different ways they treat SVG files, and when Fritzing first loads an image created by Inkscape (or Illustrator), Fritzing has to "clean" it, and then Fritzing adds its own metadata. Putting the local copy back through Inkscape (or Illustrator) and trying to reuse it in Fritzing is not likely to work. You might get lucky with Inkscape, especially if you use the "save as plain svg" option (that option can be found only if you use "save as"), but this is not guaranteed.
So your best bet is to make sure you're done editing your SVG before you load it into Fritzing, or if you need to change it, edit the original SVG file (not the local copy), then in Fritzing open up your part in the parts editor and reload your edited SVG into the part. When you do that, the file dialog presented by the parts editor will default to the location of the local copy (which is either a bug or a feature), so you have to navigate your way back to the original SVG file. Unfortunately, when you reload the original SVG, you will lose any connector information that you previously added.
Hope this helps.
As to the 3-lines-of-text problem. You can try sending the file to info (at) fritzing (dot) org and we will try to figure out what's going on.
- j
Post a Reply
Please login to post a reply.