Wie man alle Footprints auf dem Board mit der KiCAD-Plugin-Python-API erhält

Verwenden Sie die folgende for-Schleife, um alle Footprints im aktuellen Board zu iterieren:

list_footprints.py
for footprint in list(pcbnew.GetBoard().GetFootprints()):
    # Example of what to do with [footprint]
    print(footprint.GetReference())

Check out similar posts by category: KiCad, Python