I have written some software which automates creating PCB business cards
The input is a collection of text fields (name, company name, email, etc)
The output is a .kicad_pcb file which I then pass to kibot to generate gerbers using the built in Elecrow config / presets
I have had a number of these designs sent to Elecrow and they come back as they should but a few of my designs have been rejected due to DRC
I am trying to use this command to run DRC myself:
pcbnew_do run_drc pcb.kicad_pcb out/
I notice when I run this without a pcb.kicad_pro file in the dir the software auto-generates pcb.kicad_pro
I have taken the auto-generated pcb.kicad_pro and I have tried to modify DRC settings in a number of places in order to force a DRC fail
No matter how many configs I assign a huge number to I cant get this to fail, for example:
$ cat pcb.kicad_pro | grep 1000
"copper_line_width": 1000.0,
"fab_line_width": 1000.0,
"other_line_width": 1000.0,
"min_clearance": 1000.0
"min_clearance": 1000.0,
"min_connection": 1000.0,
"min_track_width": 1000.0,
"solder_mask_to_copper_clearance": 1000.0,
"clearance": 1000.0,
The pcb.kicad_pcb file which is being used as input should fail DRC with these values being so large but always I get exit code 0
And the file written to out/drc_result.rpt it looks like this:
** Drc report for pcb.kicad_pcb **
** Created on 2025-05-10T17:33:58+0000 **
** Found 0 DRC violations **
** Found 0 unconnected pads **
** Found 0 Footprint errors **
** End of Report **
The pcbnew_do program I am running from within a Docker container that starts with
FROM ghcr.io/inti-cmnb/kicad8_auto:1.7.0
I have added the input files pcb.kicad_pcb and pcb.kicad_pro to a zip archive you can find here
One more thing I am noticing which seems like it could be related:
Every time I run pcbnew_do run_drc a file gets created in the directory, the file name is pcb.kicad_pro-bak
When I look inside this file I see that the majority is the same as pcb.kicad_pro but many of the settings I have changed to 1000.0 these settings are still default in the -bak file
$ cat pcb.kicad_pro | grep 1000
"copper_line_width": 1000.0,
"fab_line_width": 1000.0,
"other_line_width": 1000.0,
"min_clearance": 1000.0
"min_clearance": 1000.0,
"min_connection": 1000.0,
"min_track_width": 1000.0,
"solder_mask_to_copper_clearance": 1000.0,
"clearance": 1000.0,
$ cat pcb.kicad_pro-bak | grep 1000
"clearance": 1000.0,
Thank you for reading and please let me know whatever else more I can do to help, thanks!
I have written some software which automates creating PCB business cards
The input is a collection of text fields (name, company name, email, etc)
The output is a
.kicad_pcbfile which I then pass tokibotto generate gerbers using the built in Elecrow config / presetsI have had a number of these designs sent to Elecrow and they come back as they should but a few of my designs have been rejected due to DRC
I am trying to use this command to run DRC myself:
I notice when I run this without a
pcb.kicad_profile in the dir the software auto-generatespcb.kicad_proI have taken the auto-generated
pcb.kicad_proand I have tried to modify DRC settings in a number of places in order to force a DRC failNo matter how many configs I assign a huge number to I cant get this to fail, for example:
The
pcb.kicad_pcbfile which is being used as input should fail DRC with these values being so large but always I get exit code0And the file written to
out/drc_result.rptit looks like this:The
pcbnew_doprogram I am running from within a Docker container that starts withI have added the input files pcb.kicad_pcb and pcb.kicad_pro to a zip archive you can find here
One more thing I am noticing which seems like it could be related:
Every time I run
pcbnew_do run_drca file gets created in the directory, the file name ispcb.kicad_pro-bakWhen I look inside this file I see that the majority is the same as
pcb.kicad_probut many of the settings I have changed to1000.0these settings are still default in the-bakfileThank you for reading and please let me know whatever else more I can do to help, thanks!