PDA

View Full Version : Coreldraw VBA find objects query.



Chris J Anderson
10-01-2014, 9:51 AM
Howdy To Everyone,

I'm wanting to write a vba macro in corel and am not sure on the correct method.

Any help would be appreciated.

Assume I've drawn a basic text object, and then duplicated it until I Have 10 text objects, as can be seen in the object manager.

I would like to know what vb code to use to find the first text object, set its position, and repeat for all femaining text objects.

The bit I am stuck on is how are duplicated objects identified, is it an array ?

Once I know how fo identify the next text object in say a for/next or do/until loop I will be fine.

Hope this question makes sense sense to somebody.

Again, any tips would be appreciated

cheers,
chris

Lee DeRaud
10-01-2014, 10:01 AM
Take a look at the attachment in my reply to this thread:
http://www.sawmillcreek.org/showthread.php?145782-Corel-Question
(second post from the end)
It's a good example of walking the object tree (including inside groups), looking for a particular type of object.

Chris J Anderson
10-01-2014, 10:39 PM
Thank you heaps Lee for that information, I'll get to work on it...

Cheers,
Chris

Mayo Pardo
10-02-2014, 12:28 AM
How is what you want to do different from what the Tools, Options, Edit, Duplicate Placement settings can accomplish?

Did you want to move objects that are already created or did you want to create them and duplicate them within a grid pattern of some sort?