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 14-07-2004, 08:08
dan
Guest
 
Posts: n/a
Default Sorting entries in the object manager

After reading a few of the posts that have to do with shape looping and other related topics, i don't have high hopes that what i propose below is achievable... but here goes.

I was hoping that someone might already have written some code that first determines the types of objects that exist in a document and then sorts them in the object manager by type. Ideally, this code would also sort within a certain type of object by property.

For example:
If a document contained 2 paragraph text objects, 5 artistic text objects, and two curves (one red and blue, but both have the same line weight), would it be possible to sort these items in the object manager so that the order would be as i have listed them?

The documents I envision using such a code on have only about 5 different object types, but about 3000 individual objects. In addition, the curves in my documents have many different colors and line weights used. I've found that the "find objects" command combined with a "to front" action is less work overall than manually hiliting objects in the object manager and using the "to front" action, but is still very tedious.

Thanks in advance,
Dan
Reply With Quote
  #2  
Old 18-08-2004, 23:16
Alex's Avatar
Alex Alex is offline
Administrator
 
Join Date: Nov 2002
Posts: 1,940
Blog Entries: 4
Default Re: Sorting entries in the object manager

Dan,

The Object Manager shows the objects in the order as they are placed in the document. That is, objects that are on the very top of a layer go first, then the object beneath it and so on. To order your shapes in the object manager, you need to actually change the order of objects with respect to each other. In most cases it will screw up the layout (objects that used to be on top of the page might appear under some objects after reordering).

This can be done by using methods such as Shape.OrderBackOf, Shape.OrderFrontOf and similar. Or you might want to create several layers, and place different object types on different layers. Obviously there will still be problems if you have various objects groupped, or if you have some complex effects applied, such as a blend between a rectangle and an ellipse.

But other than that, it's quite doable.
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
CDR12: refresh Object Manager docker after CreateSelection zlatev CorelDRAW/Corel DESIGNER VBA 2 05-03-2005 10:00
Bounding lines around an object toy4mud CorelDRAW CS 2 04-11-2004 12:56
How Do I set the PP object? andyb Corel Photo-Paint VBA 2 30-05-2004 00:04
Would you miss CorelScript object? Alex CorelDRAW/Corel DESIGNER VBA 32 04-02-2004 15:59
Font Substitution Upon Import RobC CorelDRAW/Corel DESIGNER VBA 4 11-03-2003 00:06


All times are GMT -5. The time now is 09:58.


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