PcbDraw-Lib
PcbDraw-Lib copied to clipboard
Template gererated 180° off
When trying to generate the template of the footprint AMASS_XT60-M_1x02_P7.20mm_Vertical, the component seems to be rotated by 180° while the document border seems to be correct
Command run
./scripts/create_template.py footprint /usr/share/kicad/footprints/Connector_AMASS.pretty/AMASS_XT60-M_1x02_P7.20mm_Vertical.kicad_mod custom_footprint/Connector_AMASS/AMASS_XT60-M_1x02_P7.20mm_Vertical.svg
Result expected : having the component fully in the document of Inkscpae
Well, the previous description wasn't very accurate.
Step to reproduce the issue.
- create a new kicad project
- create a board (call it board.kicad_pcb) with edgecut and one connector AMASS_XT60-M_1x02_P7.20mm_Vertical
- Rotate the component by 180°
Generate the template of the svg footprint, giving the board as an input (and not directly the footprint)
pip3 install pcbdraw==0.9.0
./pcbdraw-lib/scripts/create_template.py board board.kicad_pcb footprint
Then, the footprint is generated 180° rotated, and badly applied to the board when using pcbdraw.