diff --git a/pcbnew/python/plugins/circular_pad_array_wizard.py b/pcbnew/python/plugins/circular_pad_array_wizard.py index 2b7a344d6d..a3d3cd5672 100644 --- a/pcbnew/python/plugins/circular_pad_array_wizard.py +++ b/pcbnew/python/plugins/circular_pad_array_wizard.py @@ -119,12 +119,19 @@ class circular_pad_array_wizard(FootprintWizardBase.FootprintWizard): self.draw.SetLineThickness(pcbnew.FromMM(0.05)) self.draw.Circle(0, 0, body_radius + outline['margin']) - # Text size - + # Text (reference and value) size text_size = self.GetTextSize() # IPC nominal thickness = self.GetTextThickness() textposy = body_radius + self.draw.GetLineThickness()/2 + self.GetTextSize()/2 + thickness + + outline['margin'] self.draw.Value( 0, textposy, text_size ) self.draw.Reference( 0, -textposy, text_size ) + # Add a extra text (${REFERENCE}) on the F_Fab layer + extra_text = pcbnew.PCB_TEXT( self.module ) + extra_text.SetLayer( pcbnew.F_Fab ) + extra_text.SetPosition( pcbnew.VECTOR2I( 0, 0) ) + extra_text.SetTextSize( pcbnew.VECTOR2I( text_size, text_size ) ) + extra_text.SetText( "${REFERENCE}" ) + self.module.Add( extra_text ) + circular_pad_array_wizard().register() diff --git a/pcbnew/python/plugins/microMatch_connectors.py b/pcbnew/python/plugins/microMatch_connectors.py index 7b3fa6a6b2..95cb631b36 100644 --- a/pcbnew/python/plugins/microMatch_connectors.py +++ b/pcbnew/python/plugins/microMatch_connectors.py @@ -200,5 +200,13 @@ class MicroMaTchWizard(FPWbase.FootprintWizard): self.draw.Value(0, text_offset, text_size) self.draw.Reference(0, -text_offset, text_size) + # Add a extra text (${REFERENCE}) on the F_Fab layer + extra_text = pcbnew.PCB_TEXT( self.module ) + extra_text.SetLayer( pcbnew.F_Fab ) + extra_text.SetPosition( pcbnew.VECTOR2I( 0, 0) ) + extra_text.SetTextSize( pcbnew.VECTOR2I( text_size, text_size ) ) + extra_text.SetText( "${REFERENCE}" ) + self.module.Add( extra_text ) + MicroMaTchWizard().register() diff --git a/pcbnew/python/plugins/qfn_wizard.py b/pcbnew/python/plugins/qfn_wizard.py index 4715657e1a..1b65c5469f 100644 --- a/pcbnew/python/plugins/qfn_wizard.py +++ b/pcbnew/python/plugins/qfn_wizard.py @@ -252,6 +252,14 @@ class QFNWizard(FootprintWizardBase.FootprintWizard): self.draw.Value(0, text_offset, text_size) self.draw.Reference(0, -text_offset, text_size) + # Add a extra text (${REFERENCE}) on the F_Fab layer + extra_text = pcbnew.PCB_TEXT( self.module ) + extra_text.SetLayer( pcbnew.F_Fab ) + extra_text.SetPosition( pcbnew.VECTOR2I( 0, 0) ) + extra_text.SetTextSize( pcbnew.VECTOR2I( text_size, text_size ) ) + extra_text.SetText( "${REFERENCE}" ) + self.module.Add( extra_text ) + # set SMD attribute self.module.SetAttributes(pcbnew.FP_SMD) diff --git a/pcbnew/python/plugins/qfp_wizard.py b/pcbnew/python/plugins/qfp_wizard.py index 17bfee9a4c..787f0bb286 100644 --- a/pcbnew/python/plugins/qfp_wizard.py +++ b/pcbnew/python/plugins/qfp_wizard.py @@ -165,6 +165,14 @@ class QFPWizard(FootprintWizardBase.FootprintWizard): self.draw.Value(0, text_offset, text_size) self.draw.Reference(0, -text_offset, text_size) + # Add a extra text (${REFERENCE}) on the F_Fab layer + extra_text = pcbnew.PCB_TEXT( self.module ) + extra_text.SetLayer( pcbnew.F_Fab ) + extra_text.SetPosition( pcbnew.VECTOR2I( 0, 0) ) + extra_text.SetTextSize( pcbnew.VECTOR2I( text_size, text_size ) ) + extra_text.SetText( "${REFERENCE}" ) + self.module.Add( extra_text ) + # set SMD attribute self.module.SetAttributes(pcbnew.FP_SMD) diff --git a/pcbnew/python/plugins/zip_wizard.py b/pcbnew/python/plugins/zip_wizard.py index 92272b724d..3f075034aa 100644 --- a/pcbnew/python/plugins/zip_wizard.py +++ b/pcbnew/python/plugins/zip_wizard.py @@ -111,6 +111,14 @@ class RowedFootprint(FootprintWizardBase.FootprintWizard): self.draw.Value(0, t_posy, text_size) self.draw.Reference(0, -t_posy, text_size) + # Add a extra text (${REFERENCE}) on the F_Fab layer + extra_text = pcbnew.PCB_TEXT( self.module ) + extra_text.SetLayer( pcbnew.F_Fab ) + extra_text.SetPosition( pcbnew.VECTOR2I( 0, 0) ) + extra_text.SetTextSize( pcbnew.VECTOR2I( text_size, text_size ) ) + extra_text.SetText( "${REFERENCE}" ) + self.module.Add( extra_text ) + # set SMD attribute if self.GetName() == "ZIP": self.module.SetAttributes(pcbnew.FP_THROUGH_HOLE)