Skip to main content
Nov 15, 2010 1:01 PM UTC
Question

character fill in macros

How can I include the 'character fill' command in a macro?

    3 replies

    Nov 15, 2010 2:39 PM UTC

    The macro below is a simplied version showing the syntax. The last line of the macro ends up applying the $ISO_Black color at 10%.

    Macro Apply_Fill
    Define E1 as Element

    Create Text 0 0 "Test"

    E1 = ActiveDoc.FirstSelectedElement

    E1.Fill = "{Ref '$ISO_BLACK' 10}"

    End Macro

    Nov 15, 2010 5:10 PM UTC

    is there no way to do this using foundation's built in macro recording capability?

    Nov 15, 2010 5:12 PM UTC

    The recorder is a good starting point for a number of macro tasks, but what I'm assuming you are looking for requires a loop which can not be created by recording. This is a common cut-off point for macro recorders.