OberonPlace.com Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 25-08-2008, 00:35
sy168
Guest
 
Posts: n/a
Red face How to select the same color Shapes, adds whiteOutline, In ActiveDocument.Pages?

How to select the same color Shapes, adds whiteOutline, In ActiveDocument.Pages?
Attached Images
 
Attached Files
File Type: cdr Graphic1.cdr (28.6 KB, 16 views)
Reply With Quote
  #2  
Old 28-08-2008, 17:28
shelbym's Avatar
shelbym shelbym is offline
Senior Member
 
Join Date: Nov 2002
Location: Cheyenne, WY
Posts: 1,770
Blog Entries: 10
Send a message via ICQ to shelbym Send a message via AIM to shelbym Send a message via MSN to shelbym Send a message via Yahoo to shelbym
Default Try this...

Since you are using X4 I would use CQL to find the shapes, create a shaperange and set the outline properties. The code would look like this:
Code:
Sub WhiteOutline()
    Dim strColor As String
    Dim p As Page
    Dim sr As New ShapeRange
    
    strColor = ActiveShape.Fill.UniformColor.ToString
    
    For Each p In ActiveDocument.Pages
        sr.AddRange p.Shapes.FindShapes(Query:="@fill.color = '" & strColor & "'")
    Next p
    
    sr.SetOutlineProperties 0.0039, , CreateCMYKColor(0, 0, 0, 0)
End Sub
Best of luck,

-Shelby
Reply With Quote
  #3  
Old 01-09-2008, 11:18
sy168
Guest
 
Posts: n/a
Default

Cool, Thanks-Shelby
Reply With Quote
Reply


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
Select Rectangles out of differnet Shapes WernerHo CorelDRAW/Corel DESIGNER VBA 2 12-01-2008 17:15
select complex curves + Traverse shapes without recursion (also powerclipped!) wOxxOm CorelDRAW/Corel DESIGNER VBA 0 23-08-2007 17:11
How to select objects of the same color? Alex FAQ 6 07-07-2005 23:42
Select Single Pages... ddonnahoe CorelDRAW/Corel DESIGNER VBA 3 14-06-2005 12:41
Select Paragraph Text with more than one color joexx CorelDRAW/Corel DESIGNER VBA 2 06-10-2004 12:20


All times are GMT -5. The time now is 07:03.


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