ashkolnik

Resize Silk text

Discussion created by ashkolnik on Dec 9, 2013
Latest reply on Dec 9, 2013 by ashkolnik

Hi all ,

I am trying to make automation that resize silk text that selected by short key .

See code below :


Set Sellected_Text = pcbDocObj.FabricationLayerTexts  

 

For each Curr_text in Sellected_Text

     If Not Curr_text.IsDimensionText Then

          If Curr_text.Selected Then

               msgbox  Curr_text.TextString & "  " & Curr_text.Format.Height

               Curr_text.Format.Height=Cdbl(Curr_text.Format.Height+10)

               Exit For

           End If

     End If

next

 

On the Line MSGBOX script shows me correct text and size of text that i just selected but on next line script isn't update text on a board , why ?

 

Thanks.

Outcomes