yaqwsx / PcbDraw

Convert your KiCAD board into a nicely looking 2D drawing suitable for pinout diagrams
MIT License
1.16k stars 91 forks source link

Generate image is blank #91

Closed mikenorgate closed 2 years ago

mikenorgate commented 2 years ago

I'm attempting to generate an SVG for my PCB but the output image is blank, although when I look at the source of the SVG I can see there is data there

PcbDraw Version: 0.9.0 KiCad Version: 6.0.1

PCB Design

image

Generated SVG

https://user-images.githubusercontent.com/2479870/150813349-f875ef92-cc77-4bfa-bf41-02a87780e651.svg

Electro707 commented 2 years ago

Well this is what the SVG content looks like (opened with Inkscape, which I would recommend): image

Still does no look fine as it's black. It looks like all style parameters in the svg data are empty, so possibly a bug. Try it with KiCAD 6 and see if colors show.

What are you using to view the SVG. For example on my system, my browser (Firefox) does not show any of the generated SVGs. I am guessing this is because of the huge internal scale KiCAD outputs it's SVGs in: image

mikenorgate commented 2 years ago

I was using Chrome as that's default on my system. I'll make sure to use Inkscape in the future

Electro707 commented 2 years ago

Yeah, I do plan on hopefully getting that changed for KiCAD 7 so it could export svgs in a sane scale (https://gitlab.com/kicad/code/kicad/-/merge_requests/974).

yaqwsx commented 2 years ago

Could you share the source board? Without it I cannot reproduce to issue and debug it.

mikenorgate commented 2 years ago

@yaqwsx it's available here https://github.com/mikenorgate/3d-printer-power-hat/tree/main/pcb

yaqwsx commented 2 years ago

@mikenorgate Could you upgrade to the upstream version of PcbDraw? With the upstream version I cannot reproduce the bug:

Generated SVG Screenshot from 2022-03-01 14-50-22

If it persists, what is you OS?

mikenorgate commented 2 years ago

@yaqwsx I updated to the upstream version and all works correctly, thanks

yaqwsx commented 2 years ago

Thanks, I will make a release then.