Skip to main content
12-Amethyst
January 19, 2010
Question

Changing font color

  • January 19, 2010
  • 1 reply
  • 2778 views
I am working on a macro to apply a "Proof" mark to an Iso file before being made into a PDF. I have the coding done up to the point of changing the text to a 25% grey fill. Perhaps I've been looking at this too long, but I can't find anything to change the font color by macro. When you record a macro, the selection for changing fill is greyed out. I then tried converting to paths and looping through elements, but still could not get the color to change. Any suggestions?

    1 reply

    1-Visitor
    January 20, 2010

    You could try something like

    myTextElement.fill = "{Ref '25% Gray' 100}" 

    ,

    myTextElement.fill = "{Ref '$ISO_BLACK' 25}"

    or

    myTextElement.fill = "{RGB 191 191 191}"

    12-Amethyst
    January 20, 2010
    That worked perfectly. I knew it had to be easy. I must have been staring at the code to long. Thanks.