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
shape.ApplyStyle("cynaos")
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.
Gérard
Happy to know that Gerard.
Gerard Metrailler said:Styles are not available through the Object Model at this stage, but we plan to add this with the first update later this year.