kicad footprint plugins wizards: avoid spaces in generated footprint names (which often creates issues in filenames)
This commit is contained in:
parent
bb3dc5771c
commit
d6b1aa764e
|
@ -56,7 +56,7 @@ class BGAWizard(HFPW.HelpfulFootprintWizardPlugin):
|
|||
pins = (self.parameters["Pads"]["*row count"]
|
||||
* self.parameters["Pads"]["*column count"])
|
||||
|
||||
return "BGA %d" % pins
|
||||
return "BGA_%d" % pins
|
||||
|
||||
def GetReferencePrefix(self):
|
||||
return "U"
|
||||
|
|
|
@ -47,7 +47,7 @@ class QFPWizard(HelpfulFootprintWizardPlugin.HelpfulFootprintWizardPlugin):
|
|||
self.CheckParamBool("Pads", "*oval")
|
||||
|
||||
def GetValue(self):
|
||||
return "QFP %d" % self.parameters["Pads"]["*n"]
|
||||
return "QFP_%d" % self.parameters["Pads"]["*n"]
|
||||
|
||||
def BuildThisFootprint(self):
|
||||
|
||||
|
|
|
@ -101,7 +101,7 @@ class RowedFootprint(HFPW.HelpfulFootprintWizardPlugin):
|
|||
class SDIPWizard(RowedFootprint):
|
||||
|
||||
def GetName(self):
|
||||
return "S/DIP"
|
||||
return "S-DIP"
|
||||
|
||||
def GetDescription(self):
|
||||
return "Single/Dual Inline Package Footprint Wizard"
|
||||
|
@ -128,7 +128,7 @@ class SDIPWizard(RowedFootprint):
|
|||
else: # triple and up aren't really a thing, but call it something!
|
||||
name = "xIP"
|
||||
|
||||
return "%s %d" % (name, self.parameters["Pads"]["*n"])
|
||||
return "%s-%d" % (name, self.parameters["Pads"]["*n"])
|
||||
|
||||
def GetPad(self):
|
||||
pad_length = self.parameters["Pads"]["pad length"]
|
||||
|
@ -177,7 +177,7 @@ class SOICWizard(RowedFootprint):
|
|||
return "SOIC, MSOP, SSOP, TSSOP, etc, footprint wizard"
|
||||
|
||||
def GetValue(self):
|
||||
return "%s %d" % ("SOIC", self.parameters["Pads"]["*n"])
|
||||
return "%s-%d" % ("SOIC", self.parameters["Pads"]["*n"])
|
||||
|
||||
def GenerateParameterList(self):
|
||||
RowedFootprint.GenerateParameterList(self)
|
||||
|
|
Loading…
Reference in New Issue