Checking the netlist up to date in Pcbnew via Python

Simple question: Is there any way to check via Python if the actual netlist loaded into layout in Pcbnew is up to date with specified netlist file?

The netlist workflow is kind of deprecated. With version 5 the way to go is via the “update pcb from schematic” tool which directly uses the internal data structures without going through an intermediate file.

The netlist workflow is now mainly left for interfacing with external tools.

I am not sure if the update pcb from schematic tool can be called from within the python api. It does however provide feedback to the user about what would need to be updated. (The import netlist tool does it similarly) I am not really sure if the output of either tool can be used from within python.

It is good to know that netlist mechanism is going to be a legacy.

I have gone through the pcbnew.py module and I found ReplaceNetlist function but zero information how to use it. If it generates some output, it could be useful, maybe through the REPORTER object?

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