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