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

fix: plot board layers for kicad 8 (and later?) #174

Open sethp opened 1 month ago

sethp commented 1 month ago

Previously, plotting a board using the kicad 8 library would only render component footprints, all grouped in the bottom right corner. As of this snapshot, PcbDraw once again plots the appropriate mask/silkscreen layers.

The primary mechanism is to reshape the version selection logic such that that newer versions which are backwards compatible should render without requiring any code changes in PcbDraw going forward.

Upstream modifications that still require changes (such as the existing differences in handling kicad 5/6 from 7 & 8) have been changed to form non-default branches, such that if support for kicad 5 is dropped, it's clear what code ought to be deleted to excise the kicad-5-specific compatibility concerns.

I expect this change to address #172, #162 (the most recent comment, anyway), and #167.