kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #23112
Patch for footprint wizard
Two patches:
* one fix typo
* second accordance KLC6.9 (text size)
diff --git a/pcbnew/scripting/plugins/sdip_wizard.py b/pcbnew/scripting/plugins/sdip_wizard.py
index 078d315..12e3082 100644
--- a/pcbnew/scripting/plugins/sdip_wizard.py
+++ b/pcbnew/scripting/plugins/sdip_wizard.py
@@ -37,7 +37,7 @@ class RowedGridArray(PA.PadGridArray):
class RowedFootprint(HFPW.HelpfulFootprintWizardPlugin):
- pad_count_key = 'pas count'
+ pad_count_key = 'pad count'
row_count_key = 'row count'
row_spacing_key = 'row spacing'
pad_length_key = 'pad length'
@@ -114,7 +114,7 @@ class RowedFootprint(HFPW.HelpfulFootprintWizardPlugin):
self.draw.Box(0, 0, sizex, sizey)
# restore line thickness to previous value
self.draw.SetLineThickness(pcbnew.FromMM(cmargin))
-
+
#reference and value
text_size = self.GetTextSize() # IPC nominal
diff --git a/pcbnew/scripting/plugins/HelpfulFootprintWizardPlugin.py b/pcbnew/scripting/plugins/HelpfulFootprintWizardPlugin.py
index 90d2498..6c4c54e 100644
--- a/pcbnew/scripting/plugins/HelpfulFootprintWizardPlugin.py
+++ b/pcbnew/scripting/plugins/HelpfulFootprintWizardPlugin.py
@@ -248,7 +248,7 @@ class HelpfulFootprintWizardPlugin(pcbnew.FootprintWizardPlugin,
def GetValue(self):
raise NotImplementedError
- # this value come from our KiCad Library Convention 0.11
+ # this value come from our KiCad Library Convention 1.0
def GetReferencePrefix(self):
return "REF"
@@ -259,7 +259,7 @@ class HelpfulFootprintWizardPlugin(pcbnew.FootprintWizardPlugin,
"""
IPC nominal
"""
- return pcbnew.FromMM(1.2)
+ return pcbnew.FromMM(1.0)
def GetTextThickness(self):
"""
Follow ups