How to manage Net in PCBNew Manually [Guide]

I have found a way to manually manage net in almost every version, including version 5.1.

Because it involving editing the pcb files directly, it may break things. It help to backup the PCB file (e.g. copy-paste it into a new location)

To do that, you need to open your current PCB file with a text editor (such as Notepad or write.exe)
Scroll down to (net 0 "") (after (setup(stackup block)

Then you can add/delete as many nets as you wish in the following manner, followed by a return or enter key:
(net # "NetName")
Where the # is the number of this net entry you are adding.
For example, currently my 5.1 project have no net, so it will look like this:

...
(scaleselection 1)
      (outputdirectory ""))
  )

  (net 0 "")

  (net_class Default "This is the default net class."
    (clearance 0.254)
    (trace_width 0.381)
...

To add five nets names “GND”, “5V”, “SCK”, “CE”, and “CIPO”, change it to following:

...
(scaleselection 1)
      (outputdirectory ""))
  )

  (net 0 "")
  (net 1 "GND")
  (net 2 "5V")
  (net 3 "SCK")
  (net 4 "CE")
  (net 5 "CIPO")

  (net_class Default "This is the default net class."
    (clearance 0.254)
    (trace_width 0.381)
...

Then save as plain text.

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