OberonPlace.com Forums  

Go Back   OberonPlace.com Forums > Developer Forums > VBA > CorelDRAW/Corel DESIGNER VBA

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 23-08-2012, 06:07
Joe Joe is offline
Member
 
Join Date: Nov 2008
Location: Latvia
Posts: 92
Send a message via Skype™ to Joe
Unhappy Findshapes() finds ghosts (from shapes with effects)?

Hi again!

Having a bit of a problem here with apparently non-existing shapes being added to a ShapeRange. The general use is more complex, but I have picked out a smaller portion for testing purposes.

To test it out you would create a shape with a, say, shadow effect and some other regular shapes, like rectangles. Then run this:

Code:
Sub PicksWhatItShouldnt()
    Dim SR As ShapeRange
    Dim S As Shape
    
    Set SR = ActivePage.Shapes.FindShapes()
    SR.RemoveRange SR.FindAnyOfType(cdrNoShape, cdrBitmapShape, cdrTextShape, cdrBlendGroupShape, cdrExtrudeGroupShape, _
    cdrOLEObjectShape, cdrContourGroupShape, cdrLinearDimensionShape, cdrBevelGroupShape, cdrDropShadowGroupShape, _
    cdr3DObjectShape, cdrArtisticMediaGroupShape, cdrConnectorShape, cdrMeshFillShape, cdrCustomShape, _
    cdrCustomEffectGroupShape, cdrSymbolShape, cdrHTMLFormObjectShape, cdrHTMLActiveObjectShape, cdrPerfectShape, cdrEPSShape)
    
    For Each S In SR
        If S.Outline.Type <> cdrNoOutline And S.Outline.Color.Name <> "None" Then
            S.Outline.Color.ConvertToLab
        End If
    Next S
End Sub
In theory it should just ignore the shadow bits and convert the outline of all the shapes, but in reality we get this:



Any ideas? The main goal here is to do something with the fill and outline of each and every shape that supports such actions.
Reply With Quote
 

Tags
findshapes


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
FindShapes & PowerClips ddonnahoe Macros/Add-ons 1 01-08-2012 16:45
about effects group... 3dvr CorelDRAW/Corel DESIGNER VBA 2 01-07-2009 14:06
FindShapes Selection irregularity Shaddy CorelDRAW/Corel DESIGNER VBA 2 18-07-2006 20:41
[VBA] FindShapes reduced behaviour in X3 ;-( wOxxOm CorelDRAW/Corel DESIGNER VBA 0 05-06-2006 10:50
[s.Effects.LensEffect] is Error hotswin CorelDRAW/Corel DESIGNER VBA 10 29-08-2005 02:00


All times are GMT -5. The time now is 05:17.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2023, Jelsoft Enterprises Ltd.
Copyright © 2011, Oberonplace.com