Use the following for
loop to iterate all footprints in the current board:
for footprint in list(pcbnew.GetBoard().GetFootprints()): # Example of what to do with [footprint] print(footprint.GetReference())
Use the following for
loop to iterate all footprints in the current board:
for footprint in list(pcbnew.GetBoard().GetFootprints()): # Example of what to do with [footprint] print(footprint.GetReference())
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow