OberonPlace.com Forums  

Go Back   OberonPlace.com Forums > Corel User Forums > CorelDRAW > Macros/Add-ons

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 17-08-2010, 16:28
gorgo2 gorgo2 is offline
Senior Member
 
Join Date: Feb 2010
Posts: 107
Default Convert clone text back to normal text with macro

Is this possible?
__________________
Using: CorelDraw X4 (14.0.0.701)
OS: Windows XP Pro
Reply With Quote
  #2  
Old 17-08-2010, 18:07
shelbym's Avatar
shelbym shelbym is offline
Senior Member
 
Join Date: Nov 2002
Location: Cheyenne, WY
Posts: 1,769
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 Cloned Text

With X4, this should be pretty simple. You can use CQL to find all the clone Masters, then loop through them breaking them apart. Something like this:
Code:
Sub BreakApartClonedText()
    Dim s As Shape
    Dim srCloneMasters As ShapeRange
    Dim srBreakMeApart As New ShapeRange
    
    Set srCloneMasters = ActivePage.Shapes.FindShapes(Query:="@com.clones.count > 0 and @type = 'text:artistic'")
    
    For Each s In srCloneMasters
        srBreakMeApart.Add s
        srBreakMeApart.AddRange s.Clones()
        srBreakMeApart.BreakApart
        Set srBreakMeApart = Nothing
    Next s
End Sub
The only way I know to turn a clone into a regular shape is to select the master and all its clone then breakapart. If anyone knows an easier way to do this, let me know.

-Shelby
Reply With Quote
  #3  
Old 17-08-2010, 19:13
gorgo gorgo is offline
Senior Member
 
Join Date: Feb 2010
Posts: 169
Default

Quote:
Originally Posted by shelbym View Post
With X4, this should be pretty simple. You can use CQL to find all the clone Masters, then loop through them breaking them apart. Something like this:
Code:
Sub BreakApartClonedText()
    Dim s As Shape
    Dim srCloneMasters As ShapeRange
    Dim srBreakMeApart As New ShapeRange
    
    Set srCloneMasters = ActivePage.Shapes.FindShapes(Query:="@com.clones.count > 0 and @type = 'text:artistic'")
    
    For Each s In srCloneMasters
        srBreakMeApart.Add s
        srBreakMeApart.AddRange s.Clones()
        srBreakMeApart.BreakApart
        Set srBreakMeApart = Nothing
    Next s
End Sub
The only way I know to turn a clone into a regular shape is to select the master and all its clone then breakapart. If anyone knows an easier way to do this, let me know.

-Shelby
Genius I say!!! G E N I U S.
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
Convert Paragraph to Artistic - error on blank Paragraph Text Field gorgo2 Macros/Add-ons 3 14-09-2010 05:53
Change default text angle of rotation back to 0 jahmer General 1 16-10-2009 18:34
Convert Pantone process colour to normal CMYK colours Matthias General 14 10-06-2008 13:50
my macro rotation with clone curves. You can try Feidias CorelDRAW/Corel DESIGNER VBA 0 22-04-2008 11:44
Convert text to outline Zuk New product ideas 1 29-04-2003 12:33


All times are GMT -5. The time now is 02:55.


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