macro to change Text Style font

macro to change Text Style font

jl
Participant Participant
718 Views
1 Reply
Message 1 of 2

macro to change Text Style font

jl
Participant
Participant

 

Inventor 2012.

 

Does anybody know how to make a macro that changes the font for a specific Text Style. The name of the Text Style is eg. "3mm", which I want to change from RomanS to Verdana.

 

Best regards,

Jorn L.

0 Likes
719 Views
1 Reply
Reply (1)
Message 2 of 2

xiaodong_liang
Autodesk Support
Autodesk Support

Hi,

 

GeneralOptions.TextAppearance is what you are looking for. Please refer to the code below:

 

Sub test()

Dim oGen As GeneralOptions
Set oGen = ThisApplication.GeneralOptions

oGen.TextAppearance = "RomanC"

End Sub

 

Regards,

Xiaodong Liang

Developer Technical Services

0 Likes