Is there a pcb module to ivoke DRC and ERC in Kicad python using pcbnew
No, but you can invoke kicad-cli from python as an external program and run DRC/ERC that way.
Could u share an example or reference to one?
Run
kicad-cli pcb drc -h
and
kicad-cli sch erc -h
to get help on how to run the commands.
Use subprocess.run()
to run it from python subprocess — Subprocess management — Python 3.12.3 documentation
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.