@vanepp wrote:
I recently needed to recover the svg for a board outline with only the fzz file. Because the source svg is in the fzz file. Since I had to do this I figured I document how to do it for other people.
un zip the .fzz file to get the .fz file which is standard xml so edit the fz file with a text editor.
search for the text ’ instance moduleIdRef=“BoardLogoImageModuleID” ’
select the data after ’ <property name=“shape” value=" ’ til ’ </svg> ’ and copy that text in to a new svg file.
You now have an svg file but is quoted, so you need to unquote it to create a svg file that a svg editor will accept it. So edit the file and do the following substitutions (these are for vi or vim)
:1,$s/"/"/g which substitutes all lines (there is currently only one line but later there will be lines) that is the 1.$ part. The s/ substitutes " to " the / ends the substitution, and the g causes substitution for all instances on the line. This should let you modify the command for your editor.
:1,$s/>/>/g to do the greater thans (>)
:1,$s/</</g to do the less thans. Then (otherwise the ones above screw up!)
:1,$s/
/\r/g to replace the quoted newlines with a new line
Now if you save the result you can feed it to an svg editor.
Peter
Posts: 1
Participants: 1