Skip to content

Size

Size captures generic size specifications that may not fit into specialized models such as radius or depth. It stores the measured value, tolerance, units, and classification (e.g., overall length, width, height) so you can interpret the scale of the component. The object links to geometry, notes, datums, and projection methods, providing the context needed for fit assessments or packaging calculations. It also records extraction confidence and whether the size is a key characteristic, supporting inspection planning. Having size information centralized simplifies quoting, stock planning, tooling selection, and change detection when a drawing’s overall proportions evolve, and it supports analytics that look for systemic shifts across product families.

Bases: Quantity

Represents a size definition for a part or feature in an engineering context.

PARAMETER DESCRIPTION
value

The value of the quantity.

TYPE: Decimal

unit

The unit of the quantity.

TYPE: str

size_type

The type of size (e.g., diameter, linear, angular).

TYPE: SizeType

tolerance

The tolerance specifications associated with the size.

TYPE: Tolerance | None DEFAULT: None

Source code in werk24/models/v2/models.py
class Size(Quantity):
    """
    Represents a size definition for a part or feature in an engineering context.
    """

    size_type: SizeType = Field(
        ...,
        description="The type of size (e.g., diameter, linear, angular).",
        examples=[SizeType.DIAMETER],
    )

    tolerance: Optional[Tolerance] = Field(
        None,
        description="The tolerance specifications associated with the size.",
        examples=[
            Tolerance(
                fit="H7",
                deviation_lower=Decimal("-0.05"),
                deviation_upper=Decimal("0.05"),
                tolerance_grade="IT7",
            )
        ],
    )