List nets from Netlist

Hi
I want to see a list of net-names in eeschema. The info is in the Netlist, but it would be nice to collapse the nodes that are listed under the net names. When I search for this on the net, there are several posts saying that the default Netlist format is xml, but the one I get does not look like xml, it uses parenthesis.

Does anyone know how to go about this and what format the Netlist file is in?

Here’s a few lines from an example Netlist file:

(export (version D)
(design
(source /home/top.sch)
(date “ons 4 mar 2020 11:00:32”)
(tool “Eeschema 5.1.5”)
(sheet (number 1) (name /) (tstamps /)
(title_block
(title)
(company)
(rev)
(date)
(source top.sch)
(comment (number 1) (value “”))
(comment (number 2) (value “”))
(comment (number 3) (value “”))
(comment (number 4) (value “”))))

When I open: Eeschema / Tools / Generate Netlist File, I get this:
image

The **[v] Default format" option just determines which of the 4 supported file formats is selected by default. Your example with the parenthesis is probably Pcbnew’s own format. The parenthesis thing is called “S-expression”

I have not looked at the other formats. Some of them may be easier on your eye’s. There may be tools around to view S-expressions in a Tree-like view.

Are you familiar with the “Highlight Net” function in KiCad?
It’s in the right side toolbar.
image

Yuck, my screen grabber does not grab the mouse in this mode. It’s the second icon from the top.

1 Like

I realised I could do this simple by cat’ing the file and greping “net”.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.