API Documentation > CorelDRAW > 2025-v26 > CorelScriptTools > ICorelScriptTools
CorelScriptTools.FromPoints method
From Points
Syntax:
Function FromPoints(ByVal Value As Double) As Double
Parameters:
Name Type Description
Value
Double
Remarks:
The FromPoints method converts a numeric value from points 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 210 by 140 points in CorelDRAW. The rectangle's top-left corner coordinate is -140, 210 points relative to the center of the page, and the corners are 1.75 points in diameter.
.CreateRectangle FROMPOINTS(210), FROMPOINTS(-140), FROMPOINTS(90), FROMPOINTS(70), FROMPOINTS(1.75)