DistanceCurrentUnitType Property |
Gets or sets the current unit type.
Namespace: Tekla.Structures.Datatype
Assembly: Tekla.Structures.Datatype (in Tekla.Structures.Datatype.dll) Version: 2026.0.0-alpha00057080+93cd22c410a086ecc356b7088d4daaf2e12907eb
This example shows how to specify the current unit type.
using Tekla.Structures.Datatype; using System.Globalization; public class Example { public void Example1() { // Current unit type controls the default unit type used in parsing. Distance.CurrentUnitType = Distance.UnitType.Millimeter; Distance distance = Distance.Parse("30.2", CultureInfo.InvariantCulture); } }