Dim s As Shape
ActiveLayer.Shapes.All.CreateSelectionFor Each s In ActiveSelection.Shapes.FindShapesIf s.Type = cdrMeshFillShape ThenSet s1 = s.ConvertToBitmapEx(cdrCMYKColorImage, False, True, 200, cdrNormalAntiAliasing, True, False, 95)End IfNext
This macro search all meshes and make it bitmap, but not in powerclips, so how to do this with powerclip in document?
Dim pwc As PowerClip, OM As ShapeRange, AM As Shape, s As Shape, g As ShapeActiveDocument.BeginCommandGroup'Optimization = TrueActivePage.Shapes.FindShapes(Query:="!@com.powerclip.IsNull").CreateSelection EndFor Each s In ActiveSelection.ShapesSet OM = s.PowerClip.ExtractShapesOM.UngroupAllFor Each g In ActiveSelection.ShapesSet AM = g.ConvertToBitmapEx(cdrCMYKColorImage, False, True, 200, cdrNormalAntiAliasing, True, False, 95)AM.AddToPowerClip s, cdrFalseNextNext'Optimization = FalseActiveDocument.EndCommandGroupActiveDocument.ClearSelectionActiveWindow.RefreshEnd Sub
This work almost fine, but i need to ungroup all objects
Is there has a way to save group structure?
Yes of course
1. Check type of each selected shape 2. If the shape is a group(cdrGroupShape), apply your function to each it shape Taras