Can you run "Update Schematic from PCB" with python?

I’ve written a script for the PCB Editor that re-assigns references in a more hand solder friendly way. After running the script, I’d like to trigger the Update Schematic from PCB feature automatically so I don’t forget. Is there a way to do this with python?

There is no API for it but many things are possible if you are willing to emulate user inputs and trigger menus/button clicks.

Is that something I should look for in the kicad python docs or is it something I need to use external python libraries for?

You only need wxpython for it. Get the window handle, scan the menus to find the right command, invoke it, emulate click on ok in the dialog.
It’s brittle and tedious work but when there’s no other way some determined people have done things using similar approach.

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