User Tools

Site Tools


api:dk11:python:tatukgis_pdk.tgis_csunits.autoselect_boolean_double

Table of Contents

TGIS_CSUnits.AutoSelect method

Returned the most appropriate sub unit for selected value.

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.

2026/06/12 21:35

Page Tools