All Cadcorp SIS API Methods

SetCoordUnits Method

Description

Changes the preferred angle, linear, area or volume units used in the user interface.

Syntax

Visual Basic
Public Function SetCoordUnits( _
   ByVal nDim As Integer, _
   ByVal units As Integer, _
   ByVal places As Integer _
) As Integer

Parameters

nDim
The unit type to change. Valid values are:
SIS_UNIT_ANGLE
SIS_UNIT_LINEAR
SIS_UNIT_AREA
SIS_UNIT_VOLUME
 
units
The units to use. Valid values are:

Angle:
SIS_UNITA_DEGREES
SIS_UNITA_RADIANS
SIS_UNITA_DMS
SIS_UNITA_GRADIANS
 
Linear:
SIS_UNIT1_M
SIS_UNIT1_MM
SIS_UNIT1_CM
SIS_UNIT1_KM
SIS_UNIT1_FEET
SIS_UNIT1_INCHES
SIS_UNIT1_IMPERIAL
SIS_UNIT1_YARD
SIS_UNIT1_FATHOM
SIS_UNIT1_MILE
SIS_UNIT1_NAUTMILE
 
Area:
SIS_UNIT2_M
SIS_UNIT2_MM
SIS_UNIT2_CM
SIS_UNIT2_KM
SIS_UNIT2_FEET
SIS_UNIT2_INCHES
SIS_UNIT2_YARDS
SIS_UNIT2_ACRE
SIS_UNIT2_HECTARE
SIS_UNIT2_TUBO
SIS_UNIT2_MILE
SIS_UNIT2_NAUTMILE
 
Volume:
SIS_UNIT3_M
SIS_UNIT3_MM
SIS_UNIT3_CM
SIS_UNIT3_LITRE
SIS_UNIT3_FEET
SIS_UNIT3_INCHES
SIS_UNIT3_YARDS
SIS_UNIT3_GALLON_IMP
SIS_UNIT3_GALLON_US
 
places
The number of decimal places to display, in the range 0 to 15.

Remarks

Available: D OD OM OV

Group:

Example

sis.SetCoordUnits (SIS_UNIT_AREA, SIS_UNIT2_HECTARE, 2)

Sets the units for area measurement to Hectares with two decimal places.