Loading pcbnew/scripting/plugins/FPC_(SMD_type)_footprintwizard.py +2 −1 Original line number Original line Diff line number Diff line Loading @@ -94,7 +94,8 @@ class FPCFootprintWizard(FootprintWizardPlugin): module.Value().SetTextPosition(module.Value().GetPos0()) module.Value().SetTextPosition(module.Value().GetPos0()) module.Value().SetSize( size_text ) 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 # create a pad array and add it to the module for n in range (0,pads): for n in range (0,pads): Loading pcbnew/scripting/plugins/qfp_wizard.py +4 −3 Original line number Original line Diff line number Diff line Loading @@ -96,7 +96,8 @@ class QFPWizard(pcbnew.FootprintWizardPlugin): self.module.Value().SetTextPosition(self.module.Value().GetPos0()) self.module.Value().SetTextPosition(self.module.Value().GetPos0()) self.module.Value().SetSize(text_size) 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_left_right = pcbnew.wxSize(pad_length, pad_width) pad_size_bottom_top = pcbnew.wxSize(pad_width, pad_length) pad_size_bottom_top = pcbnew.wxSize(pad_width, pad_length) Loading pcbnew/scripting/plugins/touch_slider_wizard.py +2 −2 Original line number Original line Diff line number Diff line Loading @@ -184,8 +184,8 @@ class TouchSliderWizard(FootprintWizardPlugin): self.AddStrip(pos,steps,band_width,step_length,touch_clearance) self.AddStrip(pos,steps,band_width,step_length,touch_clearance) pos+=wxPoint(0,band_width) pos+=wxPoint(0,band_width) fpid = pcbnew.FPID(self.module.GetReference()) #the name in library module.SetLibRef("S"+str(steps)) module.SetFPID( fpid ) def register(): def register(): # create our footprint wizard # create our footprint wizard Loading scripting/kicad.i +4 −3 Original line number Original line Diff line number Diff line Loading @@ -104,6 +104,7 @@ %include <eda_text.h> %include <eda_text.h> %include <convert_from_iu.h> %include <convert_from_iu.h> %include <convert_to_biu.h> %include <convert_to_biu.h> %include <fpid.h> /* special iteration wrapper for DLIST objects */ /* special iteration wrapper for DLIST objects */ %include "dlist.i" %include "dlist.i" Loading Loading
pcbnew/scripting/plugins/FPC_(SMD_type)_footprintwizard.py +2 −1 Original line number Original line Diff line number Diff line Loading @@ -94,7 +94,8 @@ class FPCFootprintWizard(FootprintWizardPlugin): module.Value().SetTextPosition(module.Value().GetPos0()) module.Value().SetTextPosition(module.Value().GetPos0()) module.Value().SetSize( size_text ) 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 # create a pad array and add it to the module for n in range (0,pads): for n in range (0,pads): Loading
pcbnew/scripting/plugins/qfp_wizard.py +4 −3 Original line number Original line Diff line number Diff line Loading @@ -96,7 +96,8 @@ class QFPWizard(pcbnew.FootprintWizardPlugin): self.module.Value().SetTextPosition(self.module.Value().GetPos0()) self.module.Value().SetTextPosition(self.module.Value().GetPos0()) self.module.Value().SetSize(text_size) 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_left_right = pcbnew.wxSize(pad_length, pad_width) pad_size_bottom_top = pcbnew.wxSize(pad_width, pad_length) pad_size_bottom_top = pcbnew.wxSize(pad_width, pad_length) Loading
pcbnew/scripting/plugins/touch_slider_wizard.py +2 −2 Original line number Original line Diff line number Diff line Loading @@ -184,8 +184,8 @@ class TouchSliderWizard(FootprintWizardPlugin): self.AddStrip(pos,steps,band_width,step_length,touch_clearance) self.AddStrip(pos,steps,band_width,step_length,touch_clearance) pos+=wxPoint(0,band_width) pos+=wxPoint(0,band_width) fpid = pcbnew.FPID(self.module.GetReference()) #the name in library module.SetLibRef("S"+str(steps)) module.SetFPID( fpid ) def register(): def register(): # create our footprint wizard # create our footprint wizard Loading
scripting/kicad.i +4 −3 Original line number Original line Diff line number Diff line Loading @@ -104,6 +104,7 @@ %include <eda_text.h> %include <eda_text.h> %include <convert_from_iu.h> %include <convert_from_iu.h> %include <convert_to_biu.h> %include <convert_to_biu.h> %include <fpid.h> /* special iteration wrapper for DLIST objects */ /* special iteration wrapper for DLIST objects */ %include "dlist.i" %include "dlist.i" Loading