realthunder / fcad_pcb

FreeCAD scripts for PCB CAD/CAM
MIT License
126 stars 25 forks source link

pcbnew nightly issue #27

Closed easyw closed 3 years ago

easyw commented 3 years ago

Recently in kicad 5.99 pcbnew nightly format the 'module' has been changed to 'footprint' The best would be to keep compatibility for kicad v5 and v6 (5.99 nightly)

kicad v5.1.x

  (module to220-5-horizontal-inverted (layer F.Cu) (tedit 5E344340) (tstamp 5FB81C5D)
    (at 116.84 114.3)
    (descr "TO220HInv, 5pins")

kicad v5.99 (nightly)

  (footprint "to220-5-horizontal-inverted" (layer "F.Cu")
    (tedit 5E344340) (tstamp 00000000-0000-0000-0000-00005fb81c5d)
    (at 116.84 114.3)
    (descr "TO220HInv, 5pins")

I'm attaching a sample board in kicad v5 and v6 test-v6.kicad_pcb.zip test-v5.kicad_pcb.zip

realthunder commented 3 years ago

Fixed. Please recursively sync the submodules as well.

easyw commented 3 years ago

@ realthunder just a minor issue during my testing... please add 'fp_arc', 'fp_line', 'fp_rect', after this line kicad_pcb.py#L52 thanks again for your fast support