netclass_assignments not copied, results in clearance violations
Prerequisites
- [x] I have read FAQ
- [x] I have searched existing issues (including closed ones)
- [x] I use KiKit at least version 1.7.2 (older version are not supported)
KiKit version
1.7.2
KiCAD version (only KiCAD 8 and 9 are supported)
9.0.1
Operating system
Ubuntu Linux 24.04.2 LTS
Description
When panelizing, the project's netclass_assignments are not copied to the panel project file.
As a result, the created panel has clearance errors (this just bit me, including order cancellation at the fab, ouch).
Note that I'm not talking about netclass_patterns, but the direct net name -> net class assignments that are created when you use directive labels or rule areas, like this:
... which results in entries like these:
"netclass_assignments": {
"/MIPI_0_N": [
"DP_100R"
],
"/MIPI_0_P": [
"DP_100R"
],
"/MIPI_1_N": [
"DP_100R"
],
"/MIPI_1_P": [
"DP_100R"
],
"/MIPI_CLK_N": [
"DP_100R"
],
"/MIPI_CLK_P": [
"DP_100R"
]
},
Is support for such assignments (still) implemented in KiKit, or was it replaced by netclass patterns? Because we need both of them.
Thanks for KiKit!
Steps to Reproduce
- Have a design with directive labels directly on wires or on rule areas (they internally create
netclass_assignments) - Create a panel of such a design
netclass_assignmentsare missing in the created panel project file
This is a new feature in KiCAD 9, which I wasn't aware about (and it is implemented differently from standard net classes).