Scripting in pcbnew

Hello Everyone,

I am new to Kicad, but I been working with kicad for two weeks already. I am using the scripting in pcbnew. What I am trying to do is change the name of a specific net using the python scripting. I been trying to find a function that sets a new name for a net, but I can’t find anything. I am not sure if this is even possible.

The board function GetNetClasses() should work for you. This is a dictionary of references to the netclasses in your board. You can re-assign the names directly.

I don’t know your workflow, but for me a net name change should be done at the schematic and the change pushed to the PCB. Unfortunately there is not (yet) a Python API for EESchema, but it should be coming in the next major version.

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