DynamoVisualProgramming.ZeroTouchLibrary by Autodesk

<PackageReference Include="DynamoVisualProgramming.ZeroTouchLibrary" Version="3.4.0-beta6762" />

 Symbol

public class Symbol
A text symbol used to associate a value with a Unit system.
public bool Space { get; }

Gets a boolean indicating if there is typically a space between the unit value and symbol.

public string Text { get; }

Gets the string representation of a Symbol.

public string TypeId { get; }

Gets the Forge type schema identifier for a Symbol

public Unit Unit { get; }

Gets the corresponding Unit of a Symbol

public static Symbol ByTypeID(string typeId)

Creates a Symbol object from its Forge type schema identifier string.

public static bool op_Equality(Symbol lhs, Symbol rhs)

public static bool op_Inequality(Symbol lhs, Symbol rhs)

public static string StringifyDecimal(double value, int precision, Symbol symbol, bool removeTrailingZeros = false)

Returns the formatted unit expression for a given value and symbol in a decimal format.

public static string StringifyFraction(double value, int precision, Symbol symbol)

Returns the formatted expression for a given value and symbol in a fraction format.

public static IEnumerable<Symbol> SymbolsByUnit(Unit unit)

Gets all available Symbols associated with a Unit.