yaqwsx / PcbDraw-Lib

Model library for PcbDraw - https://github.com/yaqwsx/PcbDraw
Other
40 stars 19 forks source link

Template gererated 180° off #37

Open Keuronde opened 1 year ago

Keuronde commented 1 year ago

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

Keuronde commented 1 year ago

Well, the previous description wasn't very accurate.

Step to reproduce the issue.

  1. create a new kicad project
  2. create a board (call it board.kicad_pcb) with edgecut and one connector AMASS_XT60-M_1x02_P7.20mm_Vertical
  3. 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.