User Tools

Site Tools


api:dk11:python:tatukgis.pdk.tgis_csunits.autoselect_boolean_double

Table of Contents

TGIS_CSUnits.AutoSelect method

DK11 for Python | tatukgis.pdk.TGIS_CSUnits.AutoSelect | Constructors | Methods | Properties

Returned the most appropriate sub unit for selected value.

Available also on: Delphi | .NET | Java | ActiveX.

Syntax

# Python
def AutoSelect(
  self,
  _areal: bool,
  _value: VarParameter
) -> TGIS_CSUnits: 

Parameters

Name Type Description
_areal bool if true select areal units, if false select linear.
_value float units in base metric

Result

Type Description
TGIS_CSUnits Units converted to string.

Remarks

if units type is other the TGIS_CSUnitsType.Auto then returned value is always converted based on object properties
Units will be autoselected to choose the most adequate is unit is a type of TGIS_CSUnitsType.Auto.

2023/08/09 01:53

Page Tools