Hi @ramasamy_thangaperumal
Indeed you can only have one color for the whole text note.
To get the color of an existing one (already formatted), here is the code :
Dim o As Inventor.ModelLeaderNote = ThisApplication.CommandManager.Pick(SelectionFilterEnum.kAllEntitiesFilter, "")
Dim rgb As String = o.Definition.Text.Color.Red & " - " & o.Definition.Text.Color.Green & " - " & o.Definition.Text.Color.Blue
MsgBox(rgb)
To create a new color and set it to the selected note, here is the code :
Dim o As Inventor.ModelLeaderNote = ThisApplication.CommandManager.Pick(SelectionFilterEnum.kAllEntitiesFilter, "")
Dim c As Inventor.Color = ThisApplication.TransientObjects.CreateColor(100, 150, 200)
o.Definition.Text.Color = c
About colors : https://help.autodesk.com/view/INVNTOR/2022/ENU/?guid=TransientObjects_CreateColor
Note you can mark multiples replies as solution in the same post.
Kind regards,
FINET L.
If this post solved your question, please kindly mark it as "Solution"
If this post helped out in any way to solve your question, please drop a "Like"@LinkedIn @JohnCockerill