API Documentation > CorelDRAW > 2025-v26 > CorelScriptTools > ICorelScriptTools
CorelScriptTools.FromDidots method
From Didots
Syntax:
Function FromDidots(ByVal Value As Double) As Double
Parameters:
Name Type Description
Value
Double
Remarks:
The FromDidots method converts a numeric value from didots 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 100 by 50 didots in CorelDRAW. The rectangle's top-left coordinate is -70, 50 didots relative to the center of the page, and the corners are 20 didots in diameter.
.CreateRectangle FROMDIDOTS(50), FROMDIDOTS(-70), FROMDIDOTS(0), FROMDIDOTS(30), FROMDIDOTS(20)