yaqwsx / KiKit

Automation tools for KiCAD
https://yaqwsx.github.io/KiKit
MIT License
1.51k stars 200 forks source link

Feature request: Run ERC on schematic #267

Closed korken89 closed 6 months ago

korken89 commented 2 years ago

Hi and thanks for a great tool!

I was playing around with creating a CI job using KiKit, but I found one thing I was missing: to run ERC on the schematic. The DRC exists and works great, I'd like to put in a feature request for the same functionality on schematics.

Thanks!

yaqwsx commented 2 years ago

Although this is a wanted feature, unfortunately, it is not currently possible in KiCAD as there is no API. We are promised to have something in v7.

If you are only interested in CI, then look at https://github.com/INTI-CMNB/KiBot - that is a tool for CI that should be able to do this (it launches KiCAD in virtual screen and send keystrokes to it). We do not plan to implement anything like this into KiCAD as it is hard to make it multiplatform and actually work in a common user interface without breaking it.

korken89 commented 2 years ago

Thanks for the update! Unfortunate that is didn't have an API yet

yaqwsx commented 2 years ago

Unfortunately, it is pretty sure that the schematic API won't make it to KiCAD 7. So we have to postpone this feature.

yaqwsx commented 6 months ago

With KiCAD 8, there is an option to run kicad-cli sch erc and kicad-cli pcb drc. I am unsure if adding kikit erc makes any sense. I think KiKit cannot provide more value than the built-in commands.

korken89 commented 6 months ago

I think it's not needed.