Skip to main content

canonical_unit_for_dimension

Kind: Function
Domain: Expressions, units, and tolerances
Canonical import: from cadflow import canonical_unit_for_dimension

Signature

def canonical_unit_for_dimension(dimension: 'Dimension') -> 'Unit'

Description

Return the canonical unit used by CAD and tolerance calculations.

Return the canonical unit used by CAD and tolerance calculations.

Length, area, volume, and angle use mm, mm^2, mm^3, and deg.

Parameters

NameTypeRequiredDefaultSource description
dimension'Dimension'yes-Not explicitly described in the source docstring.

Returns

Type: 'Unit'

The source docstring does not declare additional return semantics.

Errors

The source docstring does not declare a narrower exception contract. Invalid types, values, ownership, paths, or backend state may still raise the corresponding public error.

Behavior and constraints

  • The contract below is generated from the current public runtime signature. Check domain notes for ownership and workflow constraints.

Import check

from cadflow import canonical_unit_for_dimension

See also