API Reference

Detailed and full API reference helps you master Tekla development

This is the most recent version of Tekla Open API.
For older versions, please visit Tekla Warehouse.

Meta.Microsoft.Help.Id
M:Tekla.Structures.Dialog.WindowBase.GetUnitDecimals(Tekla.Structures.Dialog.dotdiaUnitTypes_e)

WindowBaseGetUnitDecimals Method

Gets the number of decimals Tekla Structures uses with the specified unit type.

Namespace:  Tekla.Structures.Dialog
Assembly:  Tekla.Structures.Dialog (in Tekla.Structures.Dialog.dll) Version: 2019.1.0.0 (2019.1.0.0)
Syntax
public static int GetUnitDecimals(
	dotdiaUnitTypes_e unit
)

Parameters

unit
Type: Tekla.Structures.DialogdotdiaUnitTypes_e
The specified unit type.

Return Value

Type: Int32
The number of decimals used, 0 (no decimals or invalid unit type) or -1 (failed).
See Also