KiKit icon indicating copy to clipboard operation
KiKit copied to clipboard

Support "merging of DRC rules of multiple boards"

Open greenscreenflicker opened this issue 9 months ago • 2 comments

Prerequisites

  • [x] I have read the documentation and the proposed feature is not implemented.

Description

I run into the following KiCAD error:

File "C:\Users\mchhe\OneDrive\Dokumente\KiCad\9.0\3rdparty\Python311\site-packages\kikit\panelize.py", line 706, in transferProjectSettings raise RuntimeError("Merging of DRC rules of multiple boards is currently unsupported") RuntimeError: Merging of DRC rules of multiple boards is currently unsupported

Can you please implement this feature?

greenscreenflicker avatar Mar 24 '25 12:03 greenscreenflicker

@yaqwsx

greenscreenflicker avatar Apr 02 '25 08:04 greenscreenflicker

This isn't a trivial feature to implement. It means:

  • rewriting all the standard DRC rules into to custom DRC format and
  • building a global lifted state.

That is quite laborious and hard to test. So far, I haven't found a single good use for merging the rules. If you combine multiple boards into a single panel, they have the same technological requirements. If there are special needs for parts of a PCB, you already implement it via net classes or custom DRC rules.

If you build custom panels and the boards indeed have the same technological requirements, just specify inheritDrc=True for a single board and inheritDrc=False for all other boards when calling appendBoard.

yaqwsx avatar Apr 02 '25 09:04 yaqwsx