Skip to content

GDnT

Bases: Feature

Represents a GD&T (Geometric Dimensioning and Tolerancing) cue in a 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

characteristic

The GD&T characteristic being controlled (e.g., flatness, circularity).

TYPE: GDnTCharacteristic

zone

The tolerance zone defined for the characteristic.

TYPE: GDnTZone | None

feature

The feature being controlled by the GD&T characteristic.

TYPE: GDnTFeature | None

reference

The reference for the GD&T characteristic.

TYPE: GDnTReference | None

material_condition

Material condition (e.g., maximum material condition).

TYPE: GDnTMaterialCondition | None DEFAULT: None

state

State of the feature (e.g., free state).

TYPE: GDnTState | None DEFAULT: None

datums

List of datums used as references for the GD&T characteristic.

TYPE: list[GDnTDatum] DEFAULT: <dynamic>

Source code in werk24/models/v2/models.py
class GDnT(Feature):
    """
    Represents a GD&T (Geometric Dimensioning and Tolerancing) cue in a technical drawing.
    """

    characteristic: GDnTCharacteristic = Field(
        ...,
        description="The GD&T characteristic being controlled (e.g., flatness, circularity).",
    )
    zone: Optional[GDnTZone] = Field(
        ..., description="The tolerance zone defined for the characteristic."
    )
    feature: Optional[GDnTFeature] = Field(
        ..., description="The feature being controlled by the GD&T characteristic."
    )
    reference: Optional[GDnTReference] = Field(
        ..., description="The reference for the GD&T characteristic."
    )
    material_condition: Optional[GDnTMaterialCondition] = Field(
        None, description="Material condition (e.g., maximum material condition)."
    )
    state: Optional[GDnTState] = Field(
        None, description="State of the feature (e.g., free state)."
    )
    datums: list[GDnTDatum] = Field(
        default_factory=list,
        description="List of datums used as references for the GD&T characteristic.",
    )