If you create an object in CorelDraw that is 5 x 5 inches. Then add a huge outline to it, the measurement still reads 5 x 5. In Illustrator there's a preference to measure just the main object, or to include the outlines in the measurement and control handles. Does CorelDraw have the same setting?
I checked Corel Designer it does not support it either. In the sign manufacturing industry I never use strokes for cutting, bending or changing the letter stroke. We need the object size properly reported to the CAD interface.
I haven't implemented it into the title bar like above but you could add it to the right-click menu or as an icon on the toolbar
Sub RealSize() ' size including outline
Dim s As Shape, x#, y#, w#, h#
ActiveDocument.Unit = cdrInch
Set s = ActiveShape
o = s.Outline.Width
s.GetSize w, h
If s.Outline.Justification = cdrOutlineJustificationInside Then
MsgBox (w) & "in w" & vbNewLine & (h) & "in h"
Else
If s.Outline.Justification = cdrOutlineJustificationOutside Then
MsgBox (w + o * 2) & "in w" & vbNewLine & (h + o * 2) & "in h"
MsgBox (w + o) & "in w" & vbNewLine & (h + o) & "in h"
End If
End Sub
If I wanted to use VBA to measure the size of the rectangle that just bounded something, including outline characteristics, then I might think about something like this:
Some of that stuff can be faster if one does it with virtual objects rather than real ones.
Doing it that way would take into account not just line width, but also whether it was centerline/inside/outside, line caps, miters, etc.