Hi guys, Sorry for spamming. This patch sets the footprint attibute to SMD if needed. This allows the generated footprints to comply with KLC rule 10.5.
Cheers, Mikael Arguedas
=== modified file 'pcbnew/scripting/plugins/FPC_(SMD_type)_footprintwizard.py' --- pcbnew/scripting/plugins/FPC_(SMD_type)_footprintwizard.py 2016-02-11 15:02:37 +0000 +++ pcbnew/scripting/plugins/FPC_(SMD_type)_footprintwizard.py 2016-02-12 02:38:32 +0000 @@ -152,5 +152,7 @@ # right pad side self.draw.Line(-xstart, posy, -xend, yend) + # set attribute + self.module.SetAttributes(pcbnew.MOD_CMS) FPC_FootprintWizard().register() === modified file 'pcbnew/scripting/plugins/bga_wizard.py' --- pcbnew/scripting/plugins/bga_wizard.py 2016-02-11 15:02:37 +0000 +++ pcbnew/scripting/plugins/bga_wizard.py 2016-02-12 02:41:30 +0000 @@ -98,5 +98,7 @@ self.draw.Value(0, ypos, text_size) self.draw.Reference(0, -ypos, text_size) + # set SMD attribute + self.module.SetAttributes(pcbnew.MOD_CMS) BGAWizard().register() === modified file 'pcbnew/scripting/plugins/qfp_wizard.py' --- pcbnew/scripting/plugins/qfp_wizard.py 2016-02-11 15:02:37 +0000 +++ pcbnew/scripting/plugins/qfp_wizard.py 2016-02-12 02:42:07 +0000 @@ -127,4 +127,6 @@ self.draw.Value(0, text_offset, text_size) self.draw.Reference(0, -text_offset, text_size) + # set SMD attribute + self.module.SetAttributes(pcbnew.MOD_CMS) QFPWizard().register() === modified file 'pcbnew/scripting/plugins/sdip_wizard.py' --- pcbnew/scripting/plugins/sdip_wizard.py 2016-02-11 15:02:37 +0000 +++ pcbnew/scripting/plugins/sdip_wizard.py 2016-02-12 02:37:33 +0000 @@ -127,6 +127,11 @@ # self.draw.Value(text_px, 0, text_size, orientation_degree=90) self.draw.Value(0, 0, text_size) self.draw.Reference(-text_px, 0, text_size, orientation_degree=90) + #set the attribute + if self.GetName() == "S-DIP": + self.module.SetAttributes(pcbnew.MOD_DEFAULT) + elif self.GetName() == "SOIC": + self.module.SetAttributes(pcbnew.MOD_CMS) class SDIPWizard(RowedFootprint): === modified file 'pcbnew/scripting/plugins/touch_slider_wizard.py' --- pcbnew/scripting/plugins/touch_slider_wizard.py 2016-02-11 15:02:37 +0000 +++ pcbnew/scripting/plugins/touch_slider_wizard.py 2016-02-12 02:51:13 +0000 @@ -193,6 +193,9 @@ ypos += t_size + w_text*2 self.draw.Reference(0, -ypos, t_size) + #set SMD attribute + self.module.SetAttributes(MOD_CMS) + # starting pad pos = wxPointMM(0,0) band_width = touch_width/bands === modified file 'pcbnew/scripting/plugins/zip_wizard.py' --- pcbnew/scripting/plugins/zip_wizard.py 2016-02-11 15:02:37 +0000 +++ pcbnew/scripting/plugins/zip_wizard.py 2016-02-12 02:44:47 +0000 @@ -118,6 +118,9 @@ self.draw.Value(0, t_posy, text_size) self.draw.Reference(0, -t_posy, text_size) + # set SMD attribute + self.module.SetAttributes(pcbnew.MOD_CMS) + def DrawBox(self, sizex, sizey): # ----------
_______________________________________________ Mailing list: https://launchpad.net/~kicad-developers Post to : kicad-developers@lists.launchpad.net Unsubscribe : https://launchpad.net/~kicad-developers More help : https://help.launchpad.net/ListHelp