Python fp wizards: Add a text ("${REFERENCE}") on fab layer to a few wizards.
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user