Hello,
I basically would like to delete all the elements on the two silkscreen layers with a python script.
So far I can actually iterate throu the shapes and texts:
for fp in board.Footprints():
for gi in fp.GraphicalItems():
print(gi)
First question is how do I get the layer, each GraphicalIItem is on so I only delete the silkscreen. Second is how do I delete the Items or simply move them to a user layer? Moving the item would be best as it would be possible to remove selected items to appear on the silkscreen again.
Also lets say I accidentally deleted a silkscreen element (I think it is called ref). Is there a way to redo all the refs?
The reason I need this is because I would like to make a pcb that looks nice and presentable with only custom silkscreen elements.
Thanks