Skip to content

GeneralTolerances

Bases: Reference

Model representing general tolerances for a part or drawing.

General tolerances are applied to dimensions where specific tolerances are not explicitly defined. These tolerances are governed by recognized standards and principles.

PARAMETER DESCRIPTION
reference_id

Reference ID to identify the object.

TYPE: int

tolerance_standard

The standard used for general tolerance definitions, e.g., DIN 7168 or ISO 2768.

TYPE: GeneralTolerancesStandard

tolerance_class

The tolerance class or grade, defined as a short string such as 'm', 'f', or 'c'.

TYPE: str | None

principle

The principle governing the tolerance application, such as independence or envelope.

TYPE: GeneralTolerancesPrinciple | None

Source code in werk24/models/v2/models.py
class GeneralTolerances(Reference):
    """
    Model representing general tolerances for a part or drawing.

    General tolerances are applied to dimensions where specific tolerances are not explicitly defined.
    These tolerances are governed by recognized standards and principles.
    """

    tolerance_standard: GeneralTolerancesStandard = Field(
        ...,
        description="The standard used for general tolerance definitions, e.g., DIN 7168 or ISO 2768.",
        examples=[GeneralTolerancesStandard.ISO_2768],
    )

    tolerance_class: Optional[str] = Field(
        ...,
        description="The tolerance class or grade, defined as a short string such as 'm', 'f', or 'c'.",
        examples=["m"],
    )

    principle: Optional[GeneralTolerancesPrinciple] = Field(
        ...,
        description="The principle governing the tolerance application, such as independence or envelope.",
        examples=[GeneralTolerancesPrinciple.INDEPENDENCE],
    )