"
Result see picture
Question:
"
Help me
How to change
2010 SOLIDWORKS Help - Stack Note
Alignment. Aligns normal text with:
Upper portion of stacked text
Middle of stacked text
Lower portion of stacked text
Stack Size. Defines the size of the text relative to the font size.
*************************************************
''
''
Private Sub ll7()
Dim Xls As Excel.Application, Rng As Range
Set Xls = GetObject(, "Excel.Application")
Set Rng = Xls.Selection
Dim SwApp As SldWorks.SldWorks, SwModel As ModelDoc2
Set SwApp = Application.SldWorks
Set SwModel = SwApp.ActiveDoc
Dim SwSelMgr As SelectionMgr
Set SwSelMgr = SwModel.SelectionManager
Dim SwDraw As DrawingDoc
Set SwDraw = SwModel
Dim SwNote As Note, Str
Set SwNote = SwSelMgr.GetSelectedObject5(1)
Dim SwTextFormat As TextBox
'Set SwTextFormat = SwNote.GetTextFormat
'
Str = "m
Str = "m
Str = "m
SwNote.SetText Rng 'Str
Rng = SwNote.PropertyLinkedText
''
End Sub
How to change note color with API | SOLIDWORKS Forums
https://forum.solidworks.com/thread/62500
SolidworksApi macros