0 Replies Latest reply on Feb 19, 2014 10:52 PM by MacRaz65

    Applying Style Effects with vba script

    MacRaz65

      Hello,

       

      I've been doing a lot of scripting with VBA to create data driven graphics with good results so far.

       

      Now I want to try and fancy things up a bit. For example I'm trying to add an Effect to an object.

       

      As example, I create a simple filled rectangle with the following:

       

      Set objRectangle = docRef.PathItems.Rectangle(x, y, w, h)

      objRectangle.FillColor = rgbColorRef

      objRectangle.Stroked = False

      objRectangle.Filled = True

       

      After I want to apply an effect equivalent to selecting Effect > Stylize > Scribble... from the menus in Illustrator.

       

      I found PathItem.ApplyEffect (LiveEffectXML As String) but not sure this is correct approach. Can't find any documentation or examples on this or reference for the LiveEffectXML string.

       

      Sure would appreciate some help if anyone has done this.

      Thanks

       

      Paul

       

      PS I'm using CS6