I was curious so I spent some time reviewing various Kicad files, settings and pragmatism of implementation and usage. I tweaked Preferences, Designs and Rules and compared the files and my observations are as follows:
Considering:
• The various Design-Attributes and DRC (not, ERC), some from the PCB file, some from Kicad_pro file
• The changes in Kicad versions that may affect what works today but may not work in tomorrow’s version of Kicad
• Each Design could have significant differences (such as Teardrop, diff-Pair…etc)
Implementing a GUI Panel with selection options for various DRC Rules would be easy. It’s simply a Search and Replace of the “rules” section in the Kicad_pro file and other relevant items in the PCB file.
The GUI panel could offer Override’s to some DRC settings and could include Input Fields for Text such as Manufacturer/etc.
That can also apply to the Kicad_pro file that contains the Diff-pair info and many/any other attributes.
But, which one’s?
Who decides?
How many Attributes and DRC Rules and where to draw the line?
Should it be:
• a Standard feature?
• a Stand-Alone App?
• a Plugin?
• code for executing in Kicad’s Scripting Console?
• what about schematic’s ERC?
If I dialed it down to, say the Two-Dozen DRC rules/etc that seem to happen as a ‘default’ in the above mentioned files, I (and most any average coder) could write fully tested code in less than a few-hours.
Below shows about one-hour’s effort using wxFormBuilder, including coffee breaks…
I may spend some time to implement the Action-Code - maybe, maybe-not. I suppose that depends on several things, including response(s) to this post… At least, it’s food for thought and perhaps this GUI will spawn User ideas…
I can imagine Reading and Parsing the PCB and Kicad_pro file, extracting needed content and writing a File of DRC settings that can be read back as, for example, “DRC Set #2” or a User can edit a boiler-plate file… many options…