diff --git a/pcbnew/scripting/plugins/FPC_(SMD_type)_footprintwizard.py b/pcbnew/scripting/plugins/FPC_(SMD_type)_footprintwizard.py index 00ed074e72..3cad25da10 100644 --- a/pcbnew/scripting/plugins/FPC_(SMD_type)_footprintwizard.py +++ b/pcbnew/scripting/plugins/FPC_(SMD_type)_footprintwizard.py @@ -94,7 +94,8 @@ class FPCFootprintWizard(FootprintWizardPlugin): module.Value().SetTextPosition(module.Value().GetPos0()) module.Value().SetSize( size_text ) - module.SetLibRef("FPC"+str(pads)) #the name in library + fpid = pcbnew.FPID(self.module.GetReference()) #the name in library + module.SetFPID( fpid ) # create a pad array and add it to the module for n in range (0,pads): diff --git a/pcbnew/scripting/plugins/qfp_wizard.py b/pcbnew/scripting/plugins/qfp_wizard.py index 680c7faf35..8bd5600b6b 100644 --- a/pcbnew/scripting/plugins/qfp_wizard.py +++ b/pcbnew/scripting/plugins/qfp_wizard.py @@ -96,7 +96,8 @@ class QFPWizard(pcbnew.FootprintWizardPlugin): self.module.Value().SetTextPosition(self.module.Value().GetPos0()) self.module.Value().SetSize(text_size) - self.module.SetLibRef("QFP-%d" % int(num_pads)) + fpid = pcbnew.FPID(self.module.GetReference()) #the name in library + self.module.SetFPID( fpid ) pad_size_left_right = pcbnew.wxSize(pad_length, pad_width) pad_size_bottom_top = pcbnew.wxSize(pad_width, pad_length) @@ -106,7 +107,7 @@ class QFPWizard(pcbnew.FootprintWizardPlugin): if side == 0 or side == 2: pad_size = pad_size_left_right - + pad_pos_x = -(pad_horizontal_pitch / 2) if side == 2: pad_pos_x = -pad_pos_x @@ -227,4 +228,4 @@ class QFPWizard(pcbnew.FootprintWizardPlugin): return False -QFPWizard().register() \ No newline at end of file +QFPWizard().register() diff --git a/pcbnew/scripting/plugins/touch_slider_wizard.py b/pcbnew/scripting/plugins/touch_slider_wizard.py index 503d621161..e4e808b67c 100644 --- a/pcbnew/scripting/plugins/touch_slider_wizard.py +++ b/pcbnew/scripting/plugins/touch_slider_wizard.py @@ -184,8 +184,8 @@ class TouchSliderWizard(FootprintWizardPlugin): self.AddStrip(pos,steps,band_width,step_length,touch_clearance) pos+=wxPoint(0,band_width) - - module.SetLibRef("S"+str(steps)) + fpid = pcbnew.FPID(self.module.GetReference()) #the name in library + module.SetFPID( fpid ) def register(): # create our footprint wizard diff --git a/scripting/kicad.i b/scripting/kicad.i index 533e008762..42c1bc41ab 100644 --- a/scripting/kicad.i +++ b/scripting/kicad.i @@ -48,7 +48,7 @@ %ignore InitKiCadAbout; %ignore GetCommandOptions; -%rename(getWxRect) operator wxRect; +%rename(getWxRect) operator wxRect; %ignore operator <<; %ignore operator=; @@ -62,9 +62,9 @@ #include #include #include - + using namespace std; - + #include #include #include @@ -104,6 +104,7 @@ %include %include %include +%include /* special iteration wrapper for DLIST objects */ %include "dlist.i"