Some fixes in python footprint wizards
This commit is contained in:
parent
28991ddf58
commit
103dbb9fbd
|
@ -133,7 +133,7 @@ class FPC_FootprintWizard(FootprintWizardBase.FootprintWizard):
|
|||
self.draw.Line(-xstart, posy, -xend, yend)
|
||||
|
||||
# set SMD attribute
|
||||
self.module.SetAttributes(pcbnew.MOD_SMD)
|
||||
self.module.SetAttributes(pcbnew.PAD_ATTRIB_SMD)
|
||||
|
||||
# vertical segment at left of the pad
|
||||
xstart = xend
|
||||
|
|
|
@ -164,6 +164,6 @@ class BGAWizard(FootprintWizardBase.FootprintWizard):
|
|||
self.draw.Reference(0, -ypos, text_size)
|
||||
|
||||
# set SMD attribute
|
||||
self.module.SetAttributes(pcbnew.MOD_SMD)
|
||||
self.module.SetAttributes(pcbnew.PAD_ATTRIB_SMD)
|
||||
|
||||
BGAWizard().register()
|
||||
|
|
|
@ -227,7 +227,7 @@ class QFNWizard(FootprintWizardBase.FootprintWizard):
|
|||
self.draw.Reference(0, -text_offset, text_size)
|
||||
|
||||
# set SMD attribute
|
||||
self.module.SetAttributes(pcbnew.MOD_SMD)
|
||||
self.module.SetAttributes(pcbnew.PAD_ATTRIB_SMD)
|
||||
|
||||
QFNWizard().register()
|
||||
|
||||
|
|
|
@ -166,6 +166,6 @@ class QFPWizard(FootprintWizardBase.FootprintWizard):
|
|||
self.draw.Reference(0, -text_offset, text_size)
|
||||
|
||||
# set SMD attribute
|
||||
self.module.SetAttributes(pcbnew.MOD_SMD)
|
||||
self.module.SetAttributes(pcbnew.PAD_ATTRIB_SMD)
|
||||
|
||||
QFPWizard().register()
|
||||
|
|
|
@ -132,9 +132,9 @@ class RowedFootprint(FootprintWizardBase.FootprintWizard):
|
|||
|
||||
# set the attribute
|
||||
if self.GetName() == "S-DIP":
|
||||
self.module.SetAttributes(pcbnew.MOD_THROUGH_HOLE)
|
||||
self.module.SetAttributes(pcbnew.PAD_ATTRIB_PTH)
|
||||
elif self.GetName() == "SOIC":
|
||||
self.module.SetAttributes(pcbnew.MOD_SMD)
|
||||
self.module.SetAttributes(pcbnew.PAD_ATTRIB_SMD)
|
||||
|
||||
class SDIPWizard(RowedFootprint):
|
||||
|
||||
|
|
|
@ -189,7 +189,7 @@ class TouchSliderWizard(FootprintWizardBase.FootprintWizard):
|
|||
self.draw.Reference(0, -ypos, t_size)
|
||||
|
||||
# set SMD attribute
|
||||
self.module.SetAttributes(MOD_SMD)
|
||||
self.module.SetAttributes(PAD_ATTRIB_SMD)
|
||||
|
||||
# starting pad
|
||||
band_width = touch_width/bands
|
||||
|
|
|
@ -113,9 +113,9 @@ class RowedFootprint(FootprintWizardBase.FootprintWizard):
|
|||
|
||||
# set SMD attribute
|
||||
if self.GetName() == "ZIP":
|
||||
self.module.SetAttributes(pcbnew.MOD_THROUGH_HOLE)
|
||||
self.module.SetAttributes(pcbnew.PAD_ATTRIB_PTH)
|
||||
elif self.GetName() == "ZOIC":
|
||||
self.module.SetAttributes(pcbnew.MOD_SMD)
|
||||
self.module.SetAttributes(pcbnew.PAD_ATTRIB_SMD)
|
||||
|
||||
def DrawBox(self, sizex, sizey):
|
||||
|
||||
|
|
|
@ -146,7 +146,7 @@ static PCB_TARGET* Cast_to_PCB_TARGET( BOARD_ITEM* );
|
|||
elif ct=="PCB_GROUP":
|
||||
return Cast_to_PCB_GROUP(self)
|
||||
elif ct=="PAD":
|
||||
return Cast_to_D_PAD(self)
|
||||
return Cast_to_PAD(self)
|
||||
elif ct=="MTEXT":
|
||||
return Cast_to_FP_TEXT(self)
|
||||
elif ct=="VIA":
|
||||
|
|
Loading…
Reference in New Issue