summaryrefslogtreecommitdiff
path: root/circuitbuilder/scripts/add-n-components
blob: 46ad669a6a8e1fa91db304091eb5738741da0e1c (plain)
1
2
3
4
5
6
7
8
9
n = 32
comp = "Output"
component_class = builder.get_component_class(comp)
for i in range(n):
    component = component_class()
    component.x = 1
    component.y = 1 + i * builder.part_size * 1.01
    if not builder.add_component(component):
        print "Couldn't add component"