Frootloop:Yup, thats what im doing Jeff lol - Creating an artistic brush, selecting it, then running the brush stroke.ArtistBrushConvert script. It seperates the control line and shape, but leaves the control line behind. I blame Vista! haha
I have added an ErrorHandler for unexpected issues: Does it open a window with an error message when running the macro? I think it might be the "s.Previous().Delete" Command which isn't working. I've tested those macros in X3 and v12, but not in X4 yet. You can compile that macro when you do the following:
open the VisualBasicEditor inside of Draw and select the ArtistBrushConvert script. Delete the CommandGroup lines or paste this example under the first
Sub TestConvert()
Dim sr As Shape, origSel As New ShapeRange, s As Shape
On Error Resume Next
For Each sr In ActiveLayer.Shapes
If sr.Type = cdrArtisticMediaGroupShape Then
origSel.Add sr
origSel.CreateSelection
ActiveSelection.Separate
Set s = ActiveShape
s.Previous(cdrLevelLayer, True, True).Delete
Else
End If
Next
End Sub
Place and resize both windows side by side (Draw and the VBEditor) on your screen so that you can watch the script in Draw while running. Open the ObjectManager in Draw. Go back to the VBEditor and select the first line of the Script. If you press F8 now, the first line should have a yellow background. You are in runtime mode now. You can run the macro line by line with F8, while watching the effect in the Object manager in Draw. You can stop the runtime mode when you press the "stop" button.
What happens on your screen when the command line "s.Previous(cdrLevelLayer, True, True).Delete" is reached?