API Documentation > CorelDRAW > 2025-v26 > CorelScriptTools > ICorelScriptTools
CorelScriptTools.FromCentimeters method
From Centimeters
Syntax:
Function FromCentimeters(ByVal Value As Double) As Double
Parameters:
Name Type Description
Value
Double
Remarks:
The FromCentimeters method converts a numeric value from centimeters to tenths of a micron, which is the basic unit of measurement in Corel applications such as CorelDRAW and Corel VENTURA.
Examples:
The following VBA example creates a rectangle 7.5 by 8 centimeters in CorelDRAW. The rectangle's top-left corner coordinate is -5, 8 centimeters relative to the center of the page, and the corners are 0.75 centimeters in diameter.
.CreateRectangle FROMCENTIMETERS(8), FROMCENTIMETERS(-5), FROMCENTIMETERS(0), FROMCENTIMETERS(2.5), FROMCENTIMETERS(0.75)