macroscoreldraw

Is there any way to automatize file export operation?


Recently I'm using CorelDraw to create icons for my android application, and I have a little problem. Each icon has to be exported as a png to 6 different sizes, and it is quite annoying to export each icon 6 times. Is there any way to create a macro or other automation stuff that will do for example 6 exports of a file to a dedicated location? All the export settings besides the width and height are the same.


Solution

  • Uses the ActiveDocument.ExportBitmap command to export something as a PNG.

    Here is someone over at the corel draw community calling it.

    The resolutions are passed as arguments to ExportBitmap. Make a macro that hard codes 6 sizes and exports them to slightly different filenames.