Skip to content

UnitService

Canonical path: NemAll_Python_AllplanSettings.UnitService

Unit service

ConvertToMM staticmethod

ConvertToMM(lengthString: str) -> tuple

Convert a value string to mm

Parameters:

  • lengthString (str) –

    Length as string

Returns:

ToLengthUnitString staticmethod

ToLengthUnitString(length: float) -> str

Convert a length(mm) to a string by the current length unit

Parameters:

  • length (float) –

    Length in mm

Returns:

  • str

    String with the value in the current length unit

Placeholder