Sometimes I need to create bleeds and cutlines for various objects that are to be digitally printed and then cut using a plotter. It's not really my field but I can manage. Anyway, with the most basic artworks, or at least artworks that have a single outline or fill colour, the process goes as follows:
This becomes tedious very quickly. I need an automated solution.
Last year I tried recording a macro using more or less these steps, but I could not figure out how to point the macro to any given object. As far as I remember, it would just use the size and colour properties of whichever object was used to record the macro, so it was not dynamic.
So I have two questions:
First off, is there an outright easier way to achieve what I'm doing?
If not, how do I make the macro be more generic in its targeting? In other words, fetch and apply properties from the currently selected object instead?
Thank you.
msenjur said:but what code did you use to make it process multiple objects? Im not that good in codes, so i dont know what is For Each function?
For Each... Next is not something just for CorelDRAW. You can find information about it from a number of sources. Here is one: For Each...Next Statement (Visual Basic).
A very common way to use that in a CorelDRAW macro would be something like this:
Sub rotate_each_shape_30() Dim s As Shape For Each s In ActiveSelectionRange s.Rotate 30 Next s End Sub