Automatic silkscreen version with python

I’d like to have a python script which I can run to set the board version on the silkscreen.

I already have the gr_text object on the correct layer containing a placeholder version.

Is there a way with pcbnew in python that I can get a handle on the gr_text object and modify it?

Sure. I think I started with the same idea. How will you know which gr_text to modify? You would need a permanent prefix like "Rev: ".

Anyway, I found a better way is to use footprints, they allow more flexibility. You might be able to use KiAutotext directly or modify it for your needs.

Thank you @bobc I’ll have a look

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