API Documentation > CorelDRAW > 2025-v26 > CorelScriptTools > ICorelScriptTools
CorelScriptTools.FromInches method
From Inches
Syntax:
Function FromInches(ByVal Value As Double) As Double
Parameters:
Name Type Description
Value
Double
Remarks:
The FromInches method converts a numeric value from inches 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 3 by 3 inches in CorelDRAW. The rectangle's top-left coordinate is -2, 3 inches relative to the center of the page, and the corners are 0.25 inches in diameter.
.CreateRectangle FROMINCHES(3), FROMINCHES(-2), FROMINCHES(0), FROMINCHES(1), FROMINCHES(0.25)