Fastener
The Fastener model records a fastener that a callout on the drawing specifies: hardware pressed into a sheet (for example 3x PEM CLS-M4-2 or Einpressmutter M5), welded onto the part (4x DIN 929 M12, 6x weld stud M6x15), set into a hole (a threaded insert or a rivet nut), or a screw, nut or washer named by its standard (ISO 4762 M6x20). It stores the kind of fastener, the designation, standard and manufacturer as written, the thread and the length where the drawing states them, the quantity, any placement note such as nach innen zeigend, the label as it appears on the drawing, and a confidence score.
fastener_type groups fasteners by how they are joined, which is what decides the manufacturing or assembly step: pressing, welding, inserting or screwing. The thread is the thread of one piece of the fastener, using the same ThreadISOMetric model as the threads list; it is not repeated in threads, because it is not a thread cut into the part. A pitch the drawing does not write is the standard coarse pitch.
length is reported only when the drawing states a length. The number at the end of a PEM nut's part number (the 2 in CLS-M4-2) is a shank code for the sheet thickness, not a length, and is kept in designation only.
A fastener that the bill of material lists carries the same description in BillOfMaterialRow.fastener, so a callout and the BOM row for the same part can be matched field by field.
Bases: FastenerSpecification, Feature
Represents a fastener as a callout on the drawing specifies it (e.g. 3x PEM CLS-M4-2, 4x DIN 929 M12, 6x weld stud M6x15).
| PARAMETER | DESCRIPTION |
|---|---|
reference_id | Reference ID to identify the object. TYPE: |
label | A short description of the feature in a human-readable format. TYPE: |
confidence | Confidence in the feature extraction or interpretation. TYPE: |
fastener_type | The kind of fastener, by how it is joined. TYPE: |
designation | The designation of the fastener as written on the drawing, with spacing normalized (e.g. TYPE: |
standard | The standard the fastener is specified by, if one is named. TYPE: |
manufacturer | The manufacturer, if the designation names one. TYPE: |
thread | The thread of one piece of the fastener (e.g. TYPE: |
length | The length of the fastener, if stated (e.g. TYPE: |
quantity | The number of pieces. Must be at least 1. TYPE: |
note | Placement text the callout adds, as written (e.g. TYPE: |
Source code in werk24/models/v2/models.py
Bases: BaseModel
Describes a fastener: a press-in nut (e.g. PEM CLS-M4-2), a weld nut (e.g. DIN 929 M12), a weld stud (e.g. M6x15), a screw (e.g. ISO 4762 M6x20) and the like.
The same description is used for a fastener callout on the drawing (Fastener) and for a row of the bill of material that lists the fastener (BillOfMaterialRow.fastener), so the two can be matched.
| PARAMETER | DESCRIPTION |
|---|---|
fastener_type | The kind of fastener, by how it is joined. TYPE: |
designation | The designation of the fastener as written on the drawing, with spacing normalized (e.g. TYPE: |
standard | The standard the fastener is specified by, if one is named. TYPE: |
manufacturer | The manufacturer, if the designation names one. TYPE: |
thread | The thread of one piece of the fastener (e.g. TYPE: |
length | The length of the fastener, if stated (e.g. TYPE: |
Source code in werk24/models/v2/models.py
1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 | |
Bases: str, Enum
Kinds of fastener a drawing or a bill of material names.
Fastener is meant as in ISO 1891 ("Fasteners - Terminology"): the parts that join other parts. The categories follow how the fastener is joined, because that decides the manufacturing or assembly step.
Joined to the component while it is made:
- PRESS_IN_NUT: a self-clinching or broaching nut pressed into sheet metal, e.g. PEM types S, CLS or SP (
PEM CLS-M4-2), often written "Einpressmutter". - PRESS_IN_STUD: a self-clinching stud pressed into sheet metal, e.g. PEM types FH or FHS (
PEM FH-M4-10), often written "Einpressbolzen". - PRESS_IN_STANDOFF: a self-clinching spacer with a thread or a through hole, e.g. PEM types SO or BSO (
PEM SO-M3-8). - WELD_NUT: a nut welded onto the part, e.g. a hexagon weld nut to DIN 929 or a square weld nut to DIN 928.
- WELD_STUD: a threaded stud or pin welded onto the part, e.g. a stud for arc stud welding to ISO 13918.
- THREADED_INSERT: a thread insert set into a hole, e.g. a wire thread insert to DIN 8140 or a threaded bushing.
- RIVET_NUT: a blind rivet nut, set from one side of the part.
Separate parts of an assembly, as a bill of material lists them:
- SCREW: a screw or bolt, e.g.
ISO 4762 M6x20orISO 4017 M8x30. - NUT: a nut that is screwed on, e.g.
ISO 4032 M8. -
WASHER: a washer, e.g.
ISO 7089 8orDIN 125-A 6.4. -
OTHER: a fastener that fits none of the above, such as a pin or a rivet.
designationsays what it is.