how to change drawingnote format

how to change drawingnote format

skyngu
Collaborator Collaborator
647 Views
3 Replies
Message 1 of 4

how to change drawingnote format

skyngu
Collaborator
Collaborator

hi,

 

can anyone give me ideas how to change drawingnote text format in vba? such as color, font, size.

 

call drawingnote.text.color.setcolor (255,0,0)

 

seems not working.

 

thanks a lot.

Autodesk Inventor Professional 2019
0 Likes
Accepted solutions (1)
648 Views
3 Replies
Replies (3)
Message 2 of 4

skyngu
Collaborator
Collaborator

bump up

Autodesk Inventor Professional 2019
0 Likes
Message 3 of 4

xiaodong_liang
Autodesk Support
Autodesk Support
Accepted solution

Hi,

 

DrawingNote.Text returns the text string only. Please refer to the code below. 

 

Sub test()

 

' assume a drawing note is selected
Dim oNote As DrawingNote
Set oNote = ThisApplication.ActiveDocument.SelectSet(1)

 

Dim oNewColor As Color
Set oNewColor = ThisApplication.TransientObjects.CreateColor(255, 0, 0)

 

oNote.Color = oNewColor

 

End Sub

0 Likes
Message 4 of 4

skyngu
Collaborator
Collaborator

thanks

Autodesk Inventor Professional 2019
0 Likes