Skip to content

ThreadSpacing

ThreadSpacing captures supplementary spacing information for threaded features, such as lead, multiple-start configurations, or coil spacing on helical inserts. The model records the spacing value, units, direction, and linkage to the parent thread specification. It also stores notes that clarify whether spacing applies to custom thread forms or specialized applications like screw conveyors. Having thread spacing in a dedicated object ensures downstream tools correctly model the actual helix geometry and select the right tooling or inspection strategies. The additional metadata is helpful when performing kinematic simulations or coordinating with suppliers who need explicit lead information, and it aids in detecting anomalies between nominal and measured thread advance.

Bases: BaseModel

Represents the spacing of a thread, defining the distance between thread crests.

PARAMETER DESCRIPTION
pitch_in_mm

The pitch of the thread, defining the distance between thread crests.

TYPE: Decimal

threads_per_inch

The number of threads per inch (TPI) for imperial threads. Must be non-negative.

TYPE: Decimal

Source code in werk24/models/v2/models.py
class ThreadSpacing(BaseModel):
    """
    Represents the spacing of a thread, defining the distance between thread crests.
    """

    pitch_in_mm: Decimal = Field(
        ...,
        description="The pitch of the thread, defining the distance between thread crests.",
    )

    threads_per_inch: Decimal = Field(
        ...,
        ge=0,
        description="The number of threads per inch (TPI) for imperial threads. Must be non-negative.",
        examples=[Decimal("20")],
    )