Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

TextStyle should be changed

0 REPLIES 0
Reply
Message 1 of 1
Anonymous
158 Views, 0 Replies

TextStyle should be changed

I try to change the TextStyle.Font in VBA for Inventor 7 SP1 but without any good result. Font chould according to the Object Browser be read-only but that must be wrong. How else could you change the font for the whole drawing.

My code looks like as follows:

Dim oTextStyles As TextStyles
Dim oTextStyle As TextStyle

Set oTextStyles = oDrawingDoc.TextStyles
For NumberOfTextStyles = 1 To oTextStyles.Count
Set oTextStyle = oTextStyles.Item(NumberOfTextStyles)
If oTextStyle.Default = False Then
Set oTextStyle.Font = "ISOCPEUR"
End If
Next NumberOfTextStyles


Could anyone help me?
0 REPLIES 0

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report