This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# select the footprints with "name" | |
# and set value visibility to True or False | |
import pcbnew | |
def set_value_visible(name,visible=False): | |
board = pcbnew.GetBoard() | |
mods = board.GetModules() | |
name = "Euro Power Connector" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python2 | |
import pcbnew | |
def list_attributes(filename): | |
"""Print footprint attributes of all components. | |
This function prints the reference, footprint and attributes | |
of all board components, in CSV format. It can be used to | |
check that attributes such as Normal+Insert or Virtual are |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python2 | |
import re | |
import os | |
import numpy as np | |
import pcbnew | |
import matplotlib.pyplot as plt | |
from matplotlib.patches import Rectangle, Circle, Ellipse, FancyBboxPatch | |