Netclass Assignments

Maybe I am going about this the wrong way… I’ll go to the the Schematic Setup or Board Setup and want to make Netclass Assignments. Is it just me, or is it necessary to type in the nets by hand? It would be great if it just listed all the nets and I could just make the assignments. Now I realized that this can use ‘patterns’ to match to multiple nets. The problem is, I don’t remember all the nets and it would be great to have a list. Thoughts on this? Thanks.

The patterns are nice when putting nets into net classes but sometimes I miss the simplicity of the clickable interface of a few KiCad versions ago. It has also become more complicated with netclass directive labels.

One thing you can do is to make use of netclass colors in the schematic. For example by (temporarily) making all wires in the “default” netclass bright red, you can quite easily spot which nets are still in the default netclass. You can also use this technique to create a pattern / filter for all auto-generated net names.

I’m still on KiCad V8 myself. In KiCad V9 a net can be a member of multiple different netclasses at the same time. I’m not sure how that interacts with things like netclass colors in the schematic.

@paulvdh, that’s a nice tip - change default to some other color. Thanks!

So, I guess there are a couple ways I can go about adding a net to a netclass.

  1. When I add a net-label, I can hit the “+” and add it to a netclass that I have already created.

  2. Add a net-label and later right-click on the wire and then ‘assign netclass.’

  3. Use the board/schematic setup route and guess your net-names. (or write them down on a notepad so I don’t have to guess - which seems counterintuitive)

Note: If I add a net to a netclass via methods 1 or 2, they don’t show up under the ‘netclass assignments’ list in the schematic or board setup. - Still plugging for that one-stop-shop that lists all nets. :wink:

There’s a Plugin for Nets (probably several Net plugin’s), I found this one when I was coding one so, I went with it…

Works on my Kicad v7 for PCB’s - perhaps you can find one or, modify one for your Kicad version… and, for Schematic’s.

It lists the Nets, in addition to setting/resetting them…

I got it from: https://github.com/mws262/kicad-assign-net-to-selection/blob/main/assign_net_to_selection.py

It’s all in the documentation. The colour will be taken from the highest priority net class that is assigned.

In v7 (and, I imagine in newer versions, too) Assign Colors to Netclass’s then, assign Pattern to Netclass’s