Rename GetModules to GetFootprints
This commit is contained in:
committed by
Werni
parent
dfddd19b17
commit
a4650e7269
@@ -176,7 +176,7 @@ class add_automatic_border( ActionPlugin ):
|
||||
max_y = self.max( max_y, bbox.GetY() + bbox.GetHeight() )
|
||||
|
||||
# Same with modules: Find including area
|
||||
for module in pcb.GetModules():
|
||||
for module in pcb.GetFootprints():
|
||||
bbox = module.GetBoundingBox()
|
||||
min_x = self.min( min_x, bbox.GetX() )
|
||||
min_y = self.min( min_y, bbox.GetY() )
|
||||
|
||||
@@ -14,7 +14,7 @@ class testundoredo0(ActionPlugin):
|
||||
def Run(self):
|
||||
pcb = GetBoard()
|
||||
|
||||
for module in pcb.GetModules():
|
||||
for module in pcb.GetFootprints():
|
||||
pcb.RemoveNative(module)
|
||||
|
||||
|
||||
@@ -32,7 +32,7 @@ class testundoredo1(ActionPlugin):
|
||||
area = pcb.GetArea(0)
|
||||
pcb.RemoveNative(area)
|
||||
|
||||
for module in pcb.GetModules():
|
||||
for module in pcb.GetFootprints():
|
||||
pcb.RemoveNative(module)
|
||||
|
||||
for track in pcb.GetTracks():
|
||||
@@ -138,7 +138,7 @@ class testundoredo3(ActionPlugin):
|
||||
area = pcb.GetArea(i)
|
||||
area.Move(wxPointMM(random.randint(-20,20),random.randint(-20,20)))
|
||||
|
||||
for module in pcb.GetModules():
|
||||
for module in pcb.GetFootprints():
|
||||
module.Move(wxPointMM(random.randint(-20,20),random.randint(-20,20)))
|
||||
if random.randint(0,10) > 5:
|
||||
module.Flip(module.GetPosition())
|
||||
|
||||
Reference in New Issue
Block a user