Interesting, per @Jon_Varteresian’s original question, board houses will sometimes ask for the number of pads and drills, especially for web-based auto-quotes. Is there a way to report the total number of drills?
…And I just found this after some poking around.
When generating the drill files (Files->Fabrication Outputs->Drill File) it shows this in the dialog window:
I don’t know much more than what can be read on the web.
It’s possible that they ask the pad count for price quotes just out of habit, even if your PCB will not go through electrical testing. I have no idea.
I have a couple of .zip files I used to plot SVG. I want to count the number of bottom and top SMT pads and number of through holes in a given Gerber.
Is there an API I can use to count SMT pads and number of through holes programmatically.