yaqwsx / PcbDraw

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

Footprints are rotated #144

Open n-i-x opened 1 year ago

n-i-x commented 1 year ago

Full disclosure: I'm working off a KiCad PCB that was converted to KiCad format from EasyEDA JSON. This might be the cause of issues.

Some footprints are rotated when they are plotted. I'm not sure what controls the orientation of the footprint so I don't know what to do to fix it.

image

I'm still working through adding footprints of the missing components and will submit PRs to the lib repo when I have them.

yaqwsx commented 1 year ago

There is no standard or rule for footprint orientation. The 0 orientation is the orientation in which the footprint is drawn. EasyEDA might use different conventions for footprint default rotation.

The "clean" way of resolving this is to build a library of EasyEDA footprints for PcbDraw. Any other way is non-systematic, and I would be hesitant to support it.

n-i-x commented 1 year ago

I created a PR in #145 to allow components to be rotated without having to create a new component. This allows the standard footprint library to be mapped to an easyeda library via symlinks instead of creating rotated svgs for every footprint.