Skip to content

2017 API dlibrary.document.Units

Dieter Geerts edited this page Sep 24, 2016 · 1 revision

dlibrary.document.Units

Base classes

  • object The most base type

Static methods

resolve_length_units(dimension: 'float | str | tuple') -> 'float | tuple'

Will return the same, but length unit strings will be transformed to floats. For a float or str dimension, this will return a float. For a tuple, which would be a point, this will return a tuple of floats.

to_area_string(araa_in_area_units: float, with_unit_mark: bool=False) -> str

to_area_units(area_in_square_inches: float) -> float

to_cubic_inches(volume_in_volume_units: float) -> float

to_inches(length_in_length_units_or_str: 'float || str') -> float

to_length_string(length_in_length_units: float, with_unit_mark: bool=False) -> str

to_length_units(length_in_inches_or_str: 'float || str') -> float

to_square_inches(area_in_area_units: float) -> float

to_volume_string(volume_in_volume_units: float, with_unit_mark: bool=False) -> str

to_volume_units(volume_in_cubic_inches: float) -> float

Properties

  • (get) length_precision -> int

Home

DLibrary for VW2017

PREVIOUS VERSIONS

Clone this wiki locally