summaryrefslogtreecommitdiff
path: root/circuitbuilder/scripts/add-n-components
blob: c3e92d05d378b97123ea4589068c73c2666bf1d0 (plain)
1
2
3
4
5
6
7
8
9
n = 16
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"