![]() |
#1
|
|||
|
|||
![]()
How to recursively find powerclip inside powerclip and edit its contents via VBA
|
#3
|
|||
|
|||
![]()
I have to convert rotated bitmaps inside the nested powerclip by again making them bitmap
|
#4
|
||||
|
||||
![]()
Here is a little example:
Code:
Sub TestFindAllShapes() Dim s As Shape, sr As ShapeRange Set sr = FindAllShapes.Shapes.FindShapes(Type:=cdrBitmapShape) For Each s In sr.Shapes s.Bitmap.ConvertToBW cdrRenderLineArt Next s End Sub Function FindAllShapes() As ShapeRange Dim s As Shape Dim sr As ShapeRange Dim srAll As New ShapeRange, srPowerClipped As New ShapeRange If ActiveSelection.Shapes.count > 0 Then Set sr = ActiveSelection.Shapes.FindShapes() Else Set sr = ActivePage.Shapes.FindShapes() End If Do For Each s In sr.Shapes.FindShapes(Query:="!@com.powerclip.IsNull") srPowerClipped.AddRange s.PowerClip.Shapes.FindShapes() Next s srAll.AddRange sr sr.RemoveAll sr.AddRange srPowerClipped srPowerClipped.RemoveAll Loop Until sr.count = 0 Set FindAllShapes = srAll End Function -Shelby |
#5
|
|||
|
|||
![]()
my sample file is attached, pls see what can be done
|
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Text in Powerclip | Craig Tucker | CorelDRAW/Corel DESIGNER VBA | 3 | 27-11-2012 08:11 |
CQL does not find shapes in PowerClip | aakkaarr | CorelDRAW/Corel DESIGNER VBA | 3 | 11-05-2011 17:44 |
Rotation and PowerClip | Craig Tucker | CorelDRAW/Corel DESIGNER VBA | 3 | 23-08-2007 16:31 |
powerclip extract | zaum | CorelDRAW/Corel DESIGNER VBA | 2 | 26-10-2005 07:26 |
BUG - Lens Effect inside a Powerclip.jpg | Hernán | General | 3 | 08-04-2005 23:06 |