Skip to content

Feature

Feature represents a higher-level characteristic identified on the drawing, such as a hole, slot, or surface that carries additional requirements. The model serves as a hub linking geometry, dimensions, tolerances, and manufacturing instructions for that feature. It stores classification tags, references to the source view, and relationships to parent or child features, enabling you to reconstruct the feature tree programmatically. Downstream consumers can use it to group related annotations, determine machining intent, or assess which features drive inspection plans. Because many workflows revolve around features rather than isolated dimensions, this object provides the context needed to map extracted data to CAD models, process plans, or quality checkpoints.

Bases: Reference

Represents a design or manufacturing cue with descriptive information and metadata.

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

Source code in werk24/models/v2/models.py
class Feature(Reference):
    """
    Represents a design or manufacturing cue with descriptive information and metadata.
    """

    label: str = Field(
        ...,
        description="A short description of the feature in a human-readable format.",
    )

    confidence: Optional[Confidence] = Field(
        ...,
        description="Confidence in the feature extraction or interpretation.",
    )