So I recently updated to CorelDraw 2020 from X7. I'm moving over my macros and I've run into a view issues. My biggest problem right now is that I cant change a Rectangle Shape's corner radius / type without crashing CorelDraw. This error doesn't even bring up the VBA debugger with an error on the offending line of code in the macro. The following is the code being used in my macro that causes a crash:
Sub StartTest() '
Dim OrigSelection As ShapeRange Set OrigSelection = ActiveSelectionRange Dim s1 As Shape Set s1 = OrigSelection(1) s1.Rectangle.CornerType = cdrCornerTypeChamfer ' crash occurs here s1.Rectangle.RelativeCornerScaling = True s1.Rectangle.RadiusLowerLeft = 0.4 s1.Rectangle.RadiusLowerRight = 0.4 s1.Rectangle.RadiusUpperLeft = 0.4 s1.Rectangle.RadiusUpperRight = 0.4 End Sub
So after selecting a Rectangle shape in my document and running this macro I get a crash. I've even recorded a macro where I simply change the corner type to Chamfer and edit the radii and after replaying the macro it causes a crash.
My OS is Windows 7 by the way.
Any insights into this issue would be greatly appreciated!
Have you tried to use a different CornerType?
I don't have any workaround to suggest, but I confirm that setting the corner type to chamfer in a macro crashes CorelDRAW 2020.
The same code does not crash 2019 and 2018.
yes, the same applies for Rounded, Scallop, and Chamfer. Additionally, without changing the CornerType, setting a Rectangle's RadiusLowerLeft, RadiusLowerRight, RadiusUpperLeft, and RadiusUpperRight also causes CorelDraw 2020 to crash.
And finally, while looking for alternative options, CorelDraw 2020 crashed when trying to use a Rectangle's SetRadius and SetRoundness methods.
thank you for your confirmation!
Does it work without macros?