AskMetaData
Request
AskMetaData
is a request object used to extract the meta data about a mechanical component from a technical drawing. Most of the meta data would typically be on the title block, but they can also be on other places (e.g, the notes section).
Example Usage
Response
Bases: Response
ResponseMetaData
represents the structured response to a metadata request (AskMetaData)
for a mechanical component drawing. This response provides essential details such as identifiers,
material options, unit systems, general tolerances, and other metadata extracted from the drawing.
The response enables better integration with manufacturing systems, PLM (Product Lifecycle Management), and ERP systems by providing structured component details.
PARAMETER | DESCRIPTION |
---|---|
ask_version
|
TYPE:
|
ask_type
|
TYPE:
|
page_type
|
TYPE:
|
bill_of_material
|
Bill of materials for the component, listing parts and quantities.
TYPE:
|
designation
|
Designation of the component.
TYPE:
|
identifiers
|
List of identifiers associated with the component.
TYPE:
|
general_roughness
|
General roughness specifications for the component.
TYPE:
|
general_tolerances
|
General tolerance specifications for the component.
TYPE:
|
languages
|
Languages used in the drawing.
TYPE:
|
material_options
|
Material options available for the component.
TYPE:
|
projection_method
|
Projection method used in the drawing (e.g., first angle or third angle).
TYPE:
|
unit_systems
|
The units specification for the component.
TYPE:
|
weight
|
Weight of the component.
TYPE:
|
Source code in werk24/models/v2/responses.py
Example Response
{
"ask_version": "v2",
"ask_type": "META_DATA",
"page_type": "COMPONENT_DRAWING",
"identifiers": [
{
"reference_id": 0,
"language": null,
"value": "WK2401",
"identifier_type": "DRAWING_NUMBER",
"stakeholder": null,
"period": null
}
],
"designation": [
{
"reference_id": 1,
"language": null,
"value": "ADAPTER"
}
],
"languages": [
"ENG"
],
"general_tolerances": null,
"general_roughness": {
"reference_id": 2,
"label": "\u221a",
"confidence": null,
"standard": "ISO 1302:2002",
"machining_allowance": null,
"material_removal_type": "UNSPECIFIED",
"applies_all_around": false,
"direction_of_lay": null,
"manufacturing_process": "",
"conditions": [],
"waviness": null
},
"material_options": [
{
"reference_id": 3,
"material_combination": [
{
"raw_ocr": "20MnCr5",
"standard": "DIN EN 10084",
"designation": "20MnCr5",
"material_category": [
"FERROUS_ALLOY",
"STEEL",
"STRUCTURAL_OR_CONSTRUCTIONAL_STEEL"
]
}
]
}
],
"weight": {
"reference_id": 4,
"value": "1.025",
"unit": "kilogram"
},
"projection_method": {
"reference_id": 5,
"projection_method": "FIRST_ANGLE"
},
"bill_of_material": null,
"unit_systems": [
{
"reference_id": 6,
"unit_system_type": "METRIC"
}
]
}