@zkormos
Thank you for your inquiry.
In Visio, after setting the default unit to millimeters in page setup manually, the units within shapes remain in inches, and only the page scale in the page settings changes.
You can try to convert the obtained results into different units.
mm = inches/0.039370078740157478
Thanks.
@zkormos
After running this sample code,the displayed unit should be “mm” in the user interface.
And visio store measurements in inches regardless of the displayed unit for compatibility reasons.
I’m sorry, but we can only follow Visio’s operations, which store measurements in inches.