Closed kholia closed 1 week ago
As a temporary workaround, I used the following hacky patch:
diff --git a/fabrication.py b/fabrication.py
index b98440e..7f11a7e 100644
--- a/fabrication.py
+++ b/fabrication.py
@@ -138,15 +138,10 @@ class Fabrication:
popt.SetSubtractMaskFromSilk(True)
- popt.SetPlotViaOnMaskLayer(False) # Set this to True if you need untented vias
+ popt.GetLegacyPlotViaOnMaskLayer()
popt.SetUseAuxOrigin(True)
- # Tented vias or not, selcted by user in settings
- popt.SetPlotViaOnMaskLayer(
- not self.parent.settings.get("gerber", {}).get("tented_vias", True)
- )
-
popt.SetUseGerberX2format(True)
popt.SetIncludeGerberNetlistInfo(True)
I can reproduce the error, but neet to figure out how to control if vias are tented or not via the API ....
As a temporary workaround, I used the following hacky patch:
diff --git a/fabrication.py b/fabrication.py index b98440e..7f11a7e 100644 --- a/fabrication.py +++ b/fabrication.py @@ -138,15 +138,10 @@ class Fabrication: popt.SetSubtractMaskFromSilk(True) - popt.SetPlotViaOnMaskLayer(False) # Set this to True if you need untented vias + popt.GetLegacyPlotViaOnMaskLayer() popt.SetUseAuxOrigin(True) - # Tented vias or not, selcted by user in settings - popt.SetPlotViaOnMaskLayer( - not self.parent.settings.get("gerber", {}).get("tented_vias", True) - ) - popt.SetUseGerberX2format(True) popt.SetIncludeGerberNetlistInfo(True)
I try to use tis solution and i have GERBER zip archive geerated. But I havent BOM file and I have empty CPL file :( No errors in console:
2024.07.16 19:27:52 - INFO - generate_geber - Successfully plotted Top layer
2024.07.16 19:27:52 - INFO - generate_geber - Successfully plotted Silk top
2024.07.16 19:27:52 - INFO - generate_geber - Successfully plotted Mask top
2024.07.16 19:27:52 - INFO - generate_geber - Successfully plotted Paste top
2024.07.16 19:27:52 - INFO - generate_geber - Successfully plotted Inner layer 1
2024.07.16 19:27:52 - INFO - generate_geber - Successfully plotted Inner layer 2
2024.07.16 19:27:52 - INFO - generate_geber - Successfully plotted Bottom layer
2024.07.16 19:27:52 - INFO - generate_geber - Successfully plotted Silk top
2024.07.16 19:27:52 - INFO - generate_geber - Successfully plotted Mask bottom
2024.07.16 19:27:52 - INFO - generate_geber - Successfully plotted Paste bottom
2024.07.16 19:27:52 - INFO - generate_geber - Successfully plotted Edges
2024.07.16 19:27:52 - INFO - generate_geber - Successfully plotted V score cut
2024.07.16 19:27:52 - INFO - generate_excellon - Finished generating Excellon files
2024.07.16 19:27:52 - INFO - zip_gerber_excellon - Finished generating ZIP file /**/cm4-carrier-board/jlcpcb/production_files/GERBER-cm4-carrier-board.zip
The plugin doesn't generate anything for me either. When first running in the project (when there is no "jlcpcb" directory including its contents in the project) it takes a long time before the main window appears. @Bouni please could you update the plugin to work with kicad-nightly-8.99 as well? Thank you very much. If you need to contribute financially, write.
Fixed in #502
Describe the bug When the generate fabrication files button is clicked, nothing happens.
To Reproduce Steps to reproduce the behavior:
Expected behavior Gerbers, BOM and POS should be generated.
KiCad Version
Debug log