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_ANGLESIS_UNIT_LINEARSIS_UNIT_AREASIS_UNIT_VOLUME - units
- The units to use. Valid values are:
Angle:SIS_UNITA_DEGREESSIS_UNITA_RADIANSSIS_UNITA_DMSSIS_UNITA_GRADIANS - Linear:
SIS_UNIT1_MSIS_UNIT1_MMSIS_UNIT1_CMSIS_UNIT1_KMSIS_UNIT1_FEETSIS_UNIT1_INCHESSIS_UNIT1_IMPERIALSIS_UNIT1_YARDSIS_UNIT1_FATHOMSIS_UNIT1_MILESIS_UNIT1_NAUTMILE
- Area:
SIS_UNIT2_MSIS_UNIT2_MMSIS_UNIT2_CMSIS_UNIT2_KMSIS_UNIT2_FEETSIS_UNIT2_INCHESSIS_UNIT2_YARDSSIS_UNIT2_ACRESIS_UNIT2_HECTARESIS_UNIT2_TUBOSIS_UNIT2_MILESIS_UNIT2_NAUTMILE
- Volume:
SIS_UNIT3_MSIS_UNIT3_MMSIS_UNIT3_CMSIS_UNIT3_LITRESIS_UNIT3_FEETSIS_UNIT3_INCHESSIS_UNIT3_YARDSSIS_UNIT3_GALLON_IMPSIS_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.