I have a full-fledged board with hundreds of components.
To care for a sane silkscreen design, I want to remove all unnecessary cluttering.
Especially fiducials and other stuff that isn’t actually a “part” (or a super obvious part not needing a reference indication) are things I want to get rid of their textual contribution. “FID15” just makes no sense.
Great opportunity for writing a few simple python lines, I thought.
So, I want to programmatically toggle the “show” checkbox you can find when you right-click a footprint, -> choose “edit” and look for the rows “Reference” and “Value” in the table. Nothing more.
I didn’t find ANY useful Kicad Python API documentation at all, not even mentioning something more special like this. So I tried … … (simplified code for clarity)
modules = board.GetModules()
for mod in modules:
if (mod.GetReference().startswith("FID")):
mod. xyz ()
with “xyz” being one of the plenty functions to retrieve flags and status and everything just to see if there’s one bit I can toggle to make reference and/or values invisible.
Beforehand, I of course changed some fiducials by hand to enable me see differences, but apart from seeing which FID was selected / highlighted in PCBNew, I didn’t find any reasonable answer.
Has anyone here any kind of documentation or even a small snippet that explains what I need to do?
Thank you!