Are the colors for the layers in the SVG export settable somewhere?
Possibly create a Color Layer Theme. In image # I have User as Black and White drawing and on right chose KiCad Classic. Just throwing out a guess as only use to create what I think are called Flat Schematics???. Think export doesn’t notify of overwriting had to rename first svg and export again. Opened both in Inkscape look allright and as had Plot Background Color unchecked the svg had white background. Re-plotted to svg and it does show background color in svg.
Sorry, I am talking about the export from pcbnew (hence the “layout” category)
Thank you for info on the layout category, not an experienced forum user. Just looked and would the preferences in PCB Editor/Colors apply. Don’t use but User settings duplicate the KiCad Default (read-only) choices. Playing with that my User settings were assigned by KiCad. Set User to loads of black and some skip black and it changes in the window. Then looks like dbl click on desired color and changing it writes to my user theme (for instance if I dbl click on F.Cu and chage to Red it saves in my User Theme. Maybe misunderstood the question. You have acceptable color on screen and wish to export with different colors in various areas. If so think you could new theme, set the colors in the window, switch to it to export and then switch back to your normal theme. Don’t mind me am learning all the time. Am amazed with the skills of individuals using the program.
Edit:
Hold Up Not Sure How It Affects User Theme, would be best to add theme and experiment using it.
I’m not certain I understand.
Do you want the colours in the SVG export to be different from the colours in the layout?
They are already entirely different. The colors of the objects in the SVG have nothing to do with the layer colors in pcbnew or the display theme. I’m wondering where they are defined and if it can be changed.
pcbnew:
export to SVG
Exported SVG in Inkscape:
Hmm, I exported a board of mine in SVG (for the first time) and the colours look very much like the display colours, red for F.Cu and blue for B.Cu, and so on. I used Firefox to view the SVG BTW. Same look in Chrome.
Interesting. Not the case here in KiCad7.
It works closer to the expected result in KiCad nightly (7.99)
I’m on 7.0.5, waiting for 7.0.6 for my distro.
Problematic version here is KiCad PCB Editor x86_64 on x86_64
Version: 7.0.6-7.0.6~ubuntu23.04.1, release build
Platform: Ubuntu 23.04, 64 bit, Little endian, wxGTK, KDE, x11
Will try to install 7.0.5 to see if that’s a regression. Any Ideas how to install an older version?
There are two different SVG-options in Kicad:
- File–>Export–>SVG
- File–>PLot–> choose Plot-format==SVG
Both options have different dialogs, so it could be that there are also different results.
Indeed the results are different. I’ve used the Export dialog, because via Plot… it can only export separate documents per layer.
because via Plot… it can only export separate documents per layer.
Plot–> SVG produces a SVG for every layer which is checked in the left layer-column (“include layers”) and adds all layers which are enabled in the second column (“plot on all layers”). So you should be able to compose your desired layer-set .
I’ve used the Export dialog
For the export-dialog I think you are right with assuming a bug. I get unreliable results regarding the SVG-colors, but until now I could not determine a pattern behind the output.
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.