Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
Guthery1
305 Views, 3 Replies

Control the color of text with i-Logic

Good morning/evening,

 

I'm trying to create a piece of text on a drawing with i-Logic.  I have functional code that lets me create the text, set the text height and even locate the text on the drawing where I want it to be, but I can't find how to update the color.  Here is my code so far:

 

oSheet = ThisDoc.Document.Sheets(1)
oGenNotes = oSheet.DrawingNotes.GeneralNotes
Dim oTG As TransientGeometry
oTG = ThisApplication.TransientGeometry
Z1 = vbNewLine

sText = "JUST" & Z1 & "AN" & Z1 & "EXAMPLE"
sFormattedText = "<StyleOverride FontSize = '4'>" & sText & "</StyleOverride>"
oGenNotes.AddFitted(oTG.CreatePoint2d(25, 30), sFormattedText)