matthewlai / JLCKicadTools

Tool for using JLCPCB assembly service with KiCad
GNU General Public License v3.0
340 stars 60 forks source link

wrong placement for TH models with different orientation in the same pcb #99

Open easyw opened 11 months ago

easyw commented 11 months ago

Hi, when a TH footprint is present in a pcb with a different orientation, the script should adjust the translation considering the footprint orientation in the pcb (getting it from -all-pos.csv file). For SMD fp the issue is not present because they are placed on fp center, in case of TH fp, the anchor is instead on first pin. This is generating a misplacement in JLC assembly service i.e. in case of a PinHeader placed in the pcb with 0deg, 90deg, 180deg and 270deg, the transformation will generate 4 different alignment to the original footprint "^PinHeader_1x02_P2\.54mm_Vertical",90,1.27,0.0

jlc-tools-test