Skip to content

Dimension

The Dimension model captures a single dimensional annotation extracted from a drawing. It preserves the measured value, tolerance scheme, units, and arrowed geometry so the dimension can be recreated or validated digitally. The object links to relevant datums, features, and notes, enabling downstream tools to understand how the measurement interacts with the broader design intent. Beyond the numeric value, it records whether the dimension is basic, reference, or key to quality and stores any modifiers such as symmetry or statistical process control tags. This normalized representation lets you run tolerance stack-ups, generate inspection plans, or compare revisions to see how sizing has changed without reinterpreting each drawing manually.

Bases: Feature

Represents a measurement cue in an engineering or technical drawing.

PARAMETER DESCRIPTION
reference_id

Reference ID to identify the object.

TYPE: int

label

A short description of the feature in a human-readable format.

TYPE: str

confidence

Confidence in the feature extraction or interpretation.

TYPE: Confidence | None

quantity

The quantity or value associated with the measurement, must be non-negative.

TYPE: int

size

Details about the size, including type, nominal value, tolerance, and unit.

TYPE: Size

Source code in werk24/models/v2/models.py
class Dimension(Feature):
    """
    Represents a measurement cue in an engineering or technical drawing.
    """

    quantity: int = Field(
        ...,
        ge=0,
        description="The quantity or value associated with the measurement, must be non-negative.",
        examples=[10],
    )

    size: Size = Field(
        ...,
        description="Details about the size, including type, nominal value, tolerance, and unit.",
    )