API Documentation > CorelDRAW > 2025-v26 > CorelScriptTools > ICorelScriptTools
CorelScriptTools.ToCentimeters method
To Centimeters
Syntax:
Function ToCentimeters(ByVal Value As Double) As Double
Parameters:
Name Type Description
Value
Double
Remarks:
The ToCentimeters method converts a numeric value to centimeters from tenths of a micron, which is the basic unit of measurement in Corel applications such as CorelDRAW and Corel VENTURA.
Examples:
In the following code example, xCM and yCM are set to the x- and y-coordinates of the selected object in centimeters:
.GetPosition (x,y) xCM = TOCENTIMETERS (x) yCM = TOCENTIMETERS (y)