OberonPlace.com Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #11  
Old 08-02-2010, 08:17
goisender
Guest
 
Posts: n/a
Default Artistic Media Group Issue

Hi John,

Your code works perfectly, but my problem is detect only artistic group shapes and its paths because i wold like apply this action to all page and in the page there're other shapes.
In your code we need select first artistis media group shapes and only this shapes, if we select other shapes this shapes are deleted because code adds to sr2.
I tried to select before apply your code all artistic group shapes and create selection but not select the paths and can't delete it. This's my problem, how can i select the paths.

An example: I have three shapes on the active selection: an artistic media group, a rectangle and a ellipse. If i use the code, adds the artistic media group to sr, separate and adds path to sr2, adds rectangle and ellipse to sr2 because they're not artistic group shapes and then delete sr2, we lost the path (it's good) and ellipse and rectangle (it's no good).

I hope my explanation are more clear.

Thanks for your time, john
Reply With Quote
  #12  
Old 08-02-2010, 09:43
runflacruiser's Avatar
runflacruiser runflacruiser is offline
Senior Member
 
Join Date: Jun 2009
Location: Pigeon Forge, TN USA
Posts: 811
Default

Hi.
Oh. ok.
I'll have to try and figure this out, since parsing the shapes counts the artistic media group shape as the effect and not the path.
I'll play with it.

-John
Reply With Quote
  #13  
Old 08-02-2010, 18:06
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 ArtisticMedia

What about something like this:
Code:
Sub ClearPathArtisticMedia()
    Dim s As Shape
    Dim sr As ShapeRange, srControlPath As New ShapeRange
    
    Set sr = ActiveSelectionRange
    
    For Each s In sr
        If s.Type = cdrArtisticMediaGroupShape Then
            srControlPath.Add s.Previous
            s.Separate
        End If
    Next s
    
    srControlPath.Delete
End Sub
-Shelby
Reply With Quote
  #14  
Old 08-02-2010, 18:20
runflacruiser's Avatar
runflacruiser runflacruiser is offline
Senior Member
 
Join Date: Jun 2009
Location: Pigeon Forge, TN USA
Posts: 811
Default

Yes! You got it.

That's a great learning tip Shelby.
Since the previous shape will always be the control path due to order of creation...right?
I crashed draw about 6 times trying to get this.
I just couldn't get separate to return anything in this case...


-John
Reply With Quote
  #15  
Old 09-02-2010, 10:39
goisender
Guest
 
Posts: n/a
Default Artistic Media Group Issue

Wow.....

This's the way!!!!!!. Thank u very very much Masters. John, i was sure that add artistic media paths to shaperange was the solution (your idea was the key, did you see?) but all my tests with '.previous', despide hours in front of PC, crash on release 14.0.0.701 (mysteriously not in release 14.0.0.567) and i can't understand why, it's possible a bad parameters use, or my limited habilities with VB, who knows.... I tried access to shape effects like you comment on last entry and following something that i read on VB help, but any command shows effects in artistic media group shape. I'm very gratefull to you for your time and your goods ideas, it has been a great help and i had learn many things.

Shelby, i take my hat off, i would like to thank you for this and other solutions in different threads that i used for other actions. Thanks man.

Just now macro is finished, i can select apply it on active page, active selection or active document and allways works, wow...

I hope help some day with other issues too.
Reply With Quote
  #16  
Old 09-02-2010, 12:38
fungel
Guest
 
Posts: n/a
Default New code works better. Corel still crashes after using it!!

Hi,

The codes work great on my computer except that after i use them Corel crashes... any ideas?

I have included the file i have been testing it with but I really don't think it's the file. Can someone else try the file and let me know if it crashes on their system also?

Many thanks,

Fungel
Attached Files
File Type: zip TEMP break apart.zip (53.3 KB, 200 views)
Reply With Quote
  #17  
Old 09-02-2010, 13:22
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 File

The code works fine on your file here, using CorelDRAW X4, build 701

-Shelby
Reply With Quote
  #18  
Old 09-02-2010, 16:41
goisender
Guest
 
Posts: n/a
Default

I been testing your file in X4 Release 14.0.0.567 and 14.0.0.701 and all works fine.
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
PhotoPaint X4 "Artistic Media" backuping solution lebaron General 0 19-08-2009 05:20
Find Group ungroup it then process and again group derasje Macros/Add-ons 2 19-11-2008 04:04
Artistic Media Groups And VBA knowbodynow CorelDRAW/Corel DESIGNER VBA 2 08-05-2008 22:18
Eraser issue jahmer General 0 17-01-2008 15:59
Change brush in Artistic Media Tool dizzzy Macros/Add-ons 1 23-06-2007 09:21


All times are GMT -5. The time now is 06:32.


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