Rename D_PAD to PAD
This commit is contained in:
parent
54878b04a5
commit
28991ddf58
|
@ -64,7 +64,7 @@ class testundoredo2(ActionPlugin):
|
||||||
|
|
||||||
|
|
||||||
def smdRectPad(footprint,size,pos,name):
|
def smdRectPad(footprint,size,pos,name):
|
||||||
pad = D_PAD(footprint)
|
pad = PAD(footprint)
|
||||||
pad.SetSize(size)
|
pad.SetSize(size)
|
||||||
pad.SetShape(PAD_SHAPE_RECT)
|
pad.SetShape(PAD_SHAPE_RECT)
|
||||||
pad.SetAttribute(PAD_ATTRIB_SMD)
|
pad.SetAttribute(PAD_ATTRIB_SMD)
|
||||||
|
|
|
@ -21,7 +21,7 @@ module.SetPosition(m_pos)
|
||||||
|
|
||||||
|
|
||||||
def smdRectPad(module,size,pos,name):
|
def smdRectPad(module,size,pos,name):
|
||||||
pad = D_PAD(module)
|
pad = PAD(module)
|
||||||
pad.SetSize(size)
|
pad.SetSize(size)
|
||||||
pad.SetShape(PAD_SHAPE_RECT)
|
pad.SetShape(PAD_SHAPE_RECT)
|
||||||
pad.SetAttribute(PAD_ATTRIB_SMD)
|
pad.SetAttribute(PAD_ATTRIB_SMD)
|
||||||
|
|
|
@ -25,7 +25,7 @@ module.SetPosition(m_pos)
|
||||||
n = 1
|
n = 1
|
||||||
for y in range (0,10):
|
for y in range (0,10):
|
||||||
for x in range (0,10):
|
for x in range (0,10):
|
||||||
pad = D_PAD(module)
|
pad = PAD(module)
|
||||||
pad.SetDrillSize(size_0_6mm)
|
pad.SetDrillSize(size_0_6mm)
|
||||||
pad.SetSize(size_1_0mm)
|
pad.SetSize(size_1_0mm)
|
||||||
pt = wxPointMM(1.27*x,1.27*y)
|
pt = wxPointMM(1.27*x,1.27*y)
|
||||||
|
|
|
@ -44,7 +44,7 @@ class FPC_FootprintWizard(FootprintWizardBase.FootprintWizard):
|
||||||
|
|
||||||
# build a rectangular pad
|
# build a rectangular pad
|
||||||
def smdRectPad(self,module,size,pos,name):
|
def smdRectPad(self,module,size,pos,name):
|
||||||
pad = pcbnew.D_PAD(module)
|
pad = pcbnew.PAD(module)
|
||||||
pad.SetSize(size)
|
pad.SetSize(size)
|
||||||
pad.SetShape(pcbnew.PAD_SHAPE_RECT)
|
pad.SetShape(pcbnew.PAD_SHAPE_RECT)
|
||||||
pad.SetAttribute(pcbnew.PAD_ATTRIB_SMD)
|
pad.SetAttribute(pcbnew.PAD_ATTRIB_SMD)
|
||||||
|
|
|
@ -46,7 +46,7 @@ class PadMaker(object):
|
||||||
@param shape: the shape of the pad
|
@param shape: the shape of the pad
|
||||||
@param rot_degree: the pad rotation, in degrees
|
@param rot_degree: the pad rotation, in degrees
|
||||||
"""
|
"""
|
||||||
pad = pcbnew.D_PAD(self.module)
|
pad = pcbnew.PAD(self.module)
|
||||||
pad.SetSize(pcbnew.wxSize(Hsize, Vsize))
|
pad.SetSize(pcbnew.wxSize(Hsize, Vsize))
|
||||||
pad.SetShape(shape)
|
pad.SetShape(shape)
|
||||||
pad.SetAttribute(pcbnew.PAD_ATTRIB_PTH)
|
pad.SetAttribute(pcbnew.PAD_ATTRIB_PTH)
|
||||||
|
@ -71,7 +71,7 @@ class PadMaker(object):
|
||||||
|
|
||||||
@param drill: the drill diameter (equals the NPTH diameter)
|
@param drill: the drill diameter (equals the NPTH diameter)
|
||||||
"""
|
"""
|
||||||
pad = pcbnew.D_PAD(self.module)
|
pad = pcbnew.PAD(self.module)
|
||||||
pad.SetSize(pcbnew.wxSize(drill, drill))
|
pad.SetSize(pcbnew.wxSize(drill, drill))
|
||||||
pad.SetShape(pcbnew.PAD_SHAPE_CIRCLE)
|
pad.SetShape(pcbnew.PAD_SHAPE_CIRCLE)
|
||||||
pad.SetAttribute(pcbnew.PAD_ATTRIB_HOLE_NOT_PLATED)
|
pad.SetAttribute(pcbnew.PAD_ATTRIB_HOLE_NOT_PLATED)
|
||||||
|
@ -88,7 +88,7 @@ class PadMaker(object):
|
||||||
@param shape: the shape of the pad
|
@param shape: the shape of the pad
|
||||||
@param rot_degree: the pad rotation, in degrees
|
@param rot_degree: the pad rotation, in degrees
|
||||||
"""
|
"""
|
||||||
pad = pcbnew.D_PAD(self.module)
|
pad = pcbnew.PAD(self.module)
|
||||||
pad.SetSize(pcbnew.wxSize(Hsize, Vsize))
|
pad.SetSize(pcbnew.wxSize(Hsize, Vsize))
|
||||||
pad.SetShape(shape)
|
pad.SetShape(shape)
|
||||||
pad.SetAttribute(pcbnew.PAD_ATTRIB_SMD)
|
pad.SetAttribute(pcbnew.PAD_ATTRIB_SMD)
|
||||||
|
|
|
@ -55,7 +55,7 @@ class MutualcapButtonWizard(FootprintWizardBase.FootprintWizard):
|
||||||
|
|
||||||
# build a rectangular pad
|
# build a rectangular pad
|
||||||
def smdRectPad(self,module,size,pos,name):
|
def smdRectPad(self,module,size,pos,name):
|
||||||
pad = D_PAD(module)
|
pad = PAD(module)
|
||||||
pad.SetSize(size)
|
pad.SetSize(size)
|
||||||
pad.SetShape(PAD_SHAPE_RECT)
|
pad.SetShape(PAD_SHAPE_RECT)
|
||||||
pad.SetAttribute(PAD_ATTRIB_SMD)
|
pad.SetAttribute(PAD_ATTRIB_SMD)
|
||||||
|
|
|
@ -84,7 +84,7 @@ class QRCodeWizard(FootprintWizardBase.FootprintWizard):
|
||||||
# build a rectangular pad as a dot on copper layer,
|
# build a rectangular pad as a dot on copper layer,
|
||||||
# and a polygon (a square) on silkscreen
|
# and a polygon (a square) on silkscreen
|
||||||
if self.UseCu:
|
if self.UseCu:
|
||||||
pad = pcbnew.D_PAD(self.module)
|
pad = pcbnew.PAD(self.module)
|
||||||
pad.SetSize(pcbnew.wxSize(self.X, self.X))
|
pad.SetSize(pcbnew.wxSize(self.X, self.X))
|
||||||
pad_pos = pcbnew.wxPoint(xposition,yposition)
|
pad_pos = pcbnew.wxPoint(xposition,yposition)
|
||||||
pad.SetPosition(pad_pos)
|
pad.SetPosition(pad_pos)
|
||||||
|
|
|
@ -61,7 +61,7 @@ class TouchSliderWizard(FootprintWizardBase.FootprintWizard):
|
||||||
|
|
||||||
# build a rectangular pad
|
# build a rectangular pad
|
||||||
def smdRectPad(self,module,size,pos,name):
|
def smdRectPad(self,module,size,pos,name):
|
||||||
pad = D_PAD(module)
|
pad = PAD(module)
|
||||||
pad.SetSize(size)
|
pad.SetSize(size)
|
||||||
pad.SetShape(PAD_SHAPE_RECT)
|
pad.SetShape(PAD_SHAPE_RECT)
|
||||||
pad.SetAttribute(PAD_ATTRIB_SMD)
|
pad.SetAttribute(PAD_ATTRIB_SMD)
|
||||||
|
@ -73,7 +73,7 @@ class TouchSliderWizard(FootprintWizardBase.FootprintWizard):
|
||||||
|
|
||||||
|
|
||||||
def smdTrianglePad(self,module,size,pos,name,up_down=1,left_right=0):
|
def smdTrianglePad(self,module,size,pos,name,up_down=1,left_right=0):
|
||||||
pad = D_PAD(module)
|
pad = PAD(module)
|
||||||
pad.SetSize(wxSize(size[0],size[1]))
|
pad.SetSize(wxSize(size[0],size[1]))
|
||||||
pad.SetShape(PAD_SHAPE_TRAPEZOID)
|
pad.SetShape(PAD_SHAPE_TRAPEZOID)
|
||||||
pad.SetAttribute(PAD_ATTRIB_SMD)
|
pad.SetAttribute(PAD_ATTRIB_SMD)
|
||||||
|
|
|
@ -62,7 +62,7 @@ class TestBoardClass(unittest.TestCase):
|
||||||
pcb = BOARD()
|
pcb = BOARD()
|
||||||
module = FOOTPRINT(pcb)
|
module = FOOTPRINT(pcb)
|
||||||
pcb.Add(module)
|
pcb.Add(module)
|
||||||
pad = D_PAD(module)
|
pad = PAD(module)
|
||||||
module.Add(pad)
|
module.Add(pad)
|
||||||
|
|
||||||
pad.SetShape(PAD_SHAPE_OVAL)
|
pad.SetShape(PAD_SHAPE_OVAL)
|
||||||
|
|
Loading…
Reference in New Issue