Previous Document Next Document
CorelScriptTools.ToCentimeters

Function ToCentimeters(Value As Double) As Double

Member of CorelScriptTools

The ToCentimeters method converts a numeric value from tenths of a micron to centimeters.

Parameter
Description
Value
Specifies the value to be converted

  • Tenths of a micron are used as the basic unit of measurement in Corel applications such as CorelDRAW and Corel VENTURA.

In the following CorelDRAW 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) 

Previous Document Next Document Back to Top

Copyright 2007 Corel Corporation. All rights reserved.