AnsweredAssumed Answered

How to change Font size in already existing notes by using Solidworks macro?

Question asked by Sridhar S. on Nov 3, 2016

Hi,

     I recorded one macro for changing the font size in solidworks drawing file, The recorde macro coding is given below.

"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""

Dim swApp As Object

 

Dim Part As Object

Dim boolstatus As Boolean

Dim longstatus As Long, longwarnings As Long

 

 

Sub main()

 

Set swApp = _

Application.SldWorks

 

Set Part = swApp.ActiveDoc

boolstatus = Part.Extension.SelectByID2("DetailItem159@Sheet1", "NOTE", 5.65884751413903E-02, 0.187646649815043, 0, False, 0, Nothing, 0)

boolstatus = Part.Extension.SelectByID2("DetailItem160@Sheet1", "NOTE", 0.253997212502673, 0.18601741676942, 0, False, 0, Nothing, 0)

boolstatus = Part.Extension.SelectByID2("Sheet1", "SHEET", 0.109538549124128, 0.162665076448829, 0, False, 0, Nothing, 0)

Part.FileSummaryInfo

End Sub

"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""

But, After running the recorded macro, It did not change the fontsize  in solidworks drawing file. Kindly help me in this issue if you have solution for this.

(* I am new to solidworks Macro)

Outcomes