realthunder / fcad_pcb

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

kicad 6 stackup issue on load tracks #57

Closed easyw closed 2 years ago

easyw commented 2 years ago

adding tracks with custom kicad stackup is failing I'm attaching a sample board stackup-issue-saved-test.zip (tested with FC0.20 and 0.21)

PS in which way it is possible to enable the logging and where does it writes a lo file?

realthunder commented 2 years ago

The logger simply prints to FreeCAD console.

easyw commented 2 years ago

The logger simply prints to FreeCAD console.

thanks, that was easy 😸

easyw commented 2 years ago

an other small issue in case of a different setting stackup-issue-saved-test2.zip

easyw commented 2 years ago

and with the latest commit https://github.com/realthunder/fcad_pcb/commit/d3d4727eeeb09073290c9101833e4f275f1ec92c, the script doesn't work anymore with kv5 pcb files, where stackup is not present. https://github.com/realthunder/fcad_pcb/blob/8f850f1c38562aef40fd4a6f0d0fed6c1e1b6eef/kicad.py#L666