Test Dimensions¶
Test Dimensions indicate that the orderer requires the manufacturer to verify that the dimensions of the produced part adhere to the specifications. Sometimes the orderer even requires a test of all produced parts (i.e., a 100% test).
With WERK24 you can check your drawings for theses features and even automatically create First Article Inspection Reports.
Criticality¶
Sometimes the orderer defines that criticality of the Test Dimensions (e.g., Critical to Function or Critical to Price). WERK24 gives you access to this information. See W24TestCriticality
for details.
Label¶
While not required, some orderer define a label for the specific Test Dimension, so that the First Article Inspection Reports that they receive from their suppliers all follow the same scheme. This information is available through the label attribute
Rate¶
When the orderer defines a test rate for the part, this information is available through the rate attribute. Common test ratios are 50% and 100%.
Models¶
Test Dimensions can be accessed by requesting the Measures: W24AskVariantMeasures
Requesting the Test Dimensions¶
from werk24 import Hook, W24AskVariantMeasures, W24Measure
from werk24.models.techread import W24TechreadMessage
from werk24.utils import w24_read_sync
# define a function to read a file and return it as bytes
from . import get_drawing_bytes
def request_measures(drawing_bytes: bytes) -> None:
""" Request the Measures """
w24_read_sync(
drawing_bytes,
[
Hook(ask=W24AskVariantMeasures(), function=recv_measures),
]
)
def recv_measures(message: W24TechreadMessage) -> None:
""" Called when the information is available """
measures = [
W24Measure.parse_obj(r)
for r in message.payload_dic.get('measures')
]
test_measures = filter(
lambda m: m.test_dimensions is not None,
measures)
print(list(test_measures))
if __name__ == "__main__":
request_measures(get_drawing_bytes())