ATM there is a big issue on v6 because the code has changed a lot and Vias/Traces are invisible after plugin run. The user needs to save and reopen file to see them, even if they are in the file.
Same issue here:
There are already issues discussed at gitlab, but still open:
issue #5678
issue #7065
Without #7065 closed (solved), nothing could be improved on plugin side.
this broken doesn’t depend at all on plugins developers, but it is a bug/missing feature on k code.
It is all on k devs to decide how approach the python support.
few comments relevant to the issue:
It appears like
BOARD_ITEMS
added via the python interface are never added to the View
really Python programs should not be using BOARD::Add but the normal COMMIT infrastructure is not exposed right now, and I’m not sure the history behind that
Many script need to add items to a board. It allow opportunity to have many “small” feature (On my side, ViaStitching, but many others) developed by the users…