All Cadcorp SIS API Methods

SetUnits

Description

Sets the preferred units used in the user interface.

Syntax

Visual Basic
Public Function SetUnits( _
   ByVal units As String, _
   ByVal places As Integer _
) As String

Parameters

units

A string describing the units to use. Currently valid strings are: m, mm, cm, km, foot, inch, imperial, yd, fathom, mile and nautical mile.

places

The number of decimal places to display.

Remarks

Note: This method is included for backwards compatibility. Use SetCoordinates instead.

Available: D OD OM

Groups:

Example

sis.SetUnits ("m", 2)

Sets the units to metres and to two decimal places.