I've been using a VBA program in CorelDraw X6 (windows 64-bit) to create shapes on layers. I can easily give those shapes desired outline or fill characteristics using code such as shape.Outline.Width = ... or shape.Fill.UniformColor...
However, what I wanted to do was assign a named outline or fill style to the shape. It seems this isn't properly supported at present. There's no mention of such styles in the Graphics Suite X6 Macro Programming Guide (although this is hard to tell because the word "style" arises in numerous other contexts). Browsing the object model, I find shape.ApplyStyle(StyleName As String) which "applies a text/graphic style". However, if I say
where "cyanos" is an existing named outline style, it has no effect and produces no error.
Anyone know anything about this? Also, I'd like to apply the new "style sets" but there's no mention whatever of those, even in the X6 object model.
Styles are not available through the Object Model at this stage, but we plan to add this with the first update later this year.
Using CorelDRAW Graphics Suite X6.3 with Premium Membership, CorelDRAWTechnical Suite X6 & CorelCAD 2013on Windows 8 Pro 64-bit / Intel Core i7, 8 Gb RAM, nVidia NVS 4200M
As styles and style sets seem to be in the same name space, I assume I shall also be able to apply a style set in the same way?
Happy to know that Gerard.
Gerard Metrailler:Styles are not available through the Object Model at this stage, but we plan to add this with the first update later this year.