UnitTransformation

<< Click to Display Table of Contents >>

Navigation:  Layout Functions >

UnitTransformation

Previous pageReturn to chapter overviewNext page

Specifies the coordinate system in which the API of VPE handles coordinates. The coordinate system of VPE can either be in centimeter or inch units, as well as the old (prior to v4.0) 0.1mm units.

Internally, VPE computes object positions and dimensions with a precision of 1/10.000 mm.

property double VPE. UnitTransformation

read / write; runtime only

Possible Values:

ActiveX / VCL

Value

Enum

Description

VUNIT_FACTOR_CM

100000

Centimeter

coordinates are handled in cm units by the VPE API

VUNIT_FACTOR_INCH

254000

Inch

coordinates are handled in inch units by the VPE API

VUNIT_FACTOR_MM10

1000

Mm10

coordinates are handled in 1/10 of a mm by the VPE API (compatible to VPE < v4.0)

Remarks:

Setting this property does not affect the ruler’s unit measurement of the preview. To change the units of the rulers, use RulersMeasure.

Examples:

ActiveX / VCL:

Doc.UnitTransformation = VUNIT_FACTOR_MM10

 

.NET Visual Basic:

Doc.UnitTransformation = UnitFactor.Mm10

 

.NET C#:

Doc.UnitTransformation = (double)UnitFactor.Mm10

Sets the unit transformation to the old 0.1 mm units.