Skip to content

ReferencePosition

ReferencePosition captures positional references used to locate features on the sheet, such as grid coordinates or view-relative offsets. The model stores the coordinate values, the reference frame, and links to the associated entry so you can correlate annotations across multiple views. It also records the detection method, confidence, and page index, helping you prioritize which positions may require human verification. Additional metadata about the leader style or symbol used on the drawing enables precise reconstruction of the designer’s intent. With this structured location data you can build interactive viewers, automate feature matching, align extracted geometry to CAD models, or support augmented reality work instructions without manually interpreting every leader line.

Bases: BaseModel

Represents the position of a reference in the drawing.

PARAMETER DESCRIPTION
reference_id

Reference ID to identify the object.

TYPE: int

polygon

TYPE: Polygon | None

Source code in werk24/models/v2/models.py
class ReferencePosition(BaseModel):
    """
    Represents the position of a reference in the drawing.
    """

    reference_id: int = Field(
        ...,
        description="Reference ID to identify the object.",
        examples=[12345],
    )
    polygon: Optional[Polygon]