-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Drill][Added] CSV Drill Table output #760
Conversation
I'm not very satisfied with having to specify |
If the user wants gerber drills and drill table then DrillTable is for both and goes to |
Oh! BTW, the layer numbering is changing on KiCad 9 so we can't rely on B_Cu in this way. |
Sounds good
https://gitlab.com/kicad/code/kicad/-/commit/a4292ea51631001c60cb01ac759606a13747f861 |
PAD_ATTRIB_NPTH was not available and 3Rs_bv not consistent with other versions
Can be 'yes', 'no' or 'auto'
f7e269b
to
9210579
Compare
I've changed |
Looks ok. Also take a look to the review about |
What do you mean? Did you write a review somewhere? Is it about using |
Yes, this should be a call to GS.get_modules(), which already does what you wrote there. |
kibot/kicad/drill_info.py
Outdated
@@ -186,7 +186,8 @@ def build_holes_list(layer_pair, merge_PTH_NPTH, generate_NPTH_list=True, | |||
|
|||
# Add footprint/pad related PTH to hole_list_layer_pair | |||
if layer_pair == (pcbnew.F_Cu, pcbnew.B_Cu): | |||
for footprint in GS.board.GetFootprints(): | |||
footprints = GS.board.GetModules() if GS.ki5 else GS.board.GetFootprints() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is already abstracted in GS.get_modules()
Now should be visible, I forgot to mark it as ready |
for compatiblity across KiCad versions
Hi @nguyen-v !
|
Thanks! |
This PR adds a CSV drill table output to the
excellon
output. I've added a simple test case intest_drill.py
.It's basically a reimplementation of
https://gitlab.com/kicad/code/kicad/-/blob/master/pcbnew/exporters/gendrill_file_writer_base.cpp
It should work for KiCad 5+, but for KiCad 5 the generated table is slightly different (because of missing attributes).
The column order/names can be changed similar to how it's done in bom.
Example from
drill.kibot.yaml
I've also modified the 3Rs_bv.kicad_pcb PCB for KiCad 5, as it was not similar to the other versions (there was a missing through hole via, and the tests I wrote are expecting a similar PCB for all versions)