Message 1 of 4
Control the color of text with i-Logic
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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)