step-examples/12-8-mixed/M132.stp
Sources
- 16-iso-spec ISO 10303-203 §5.6 (material assignment via group)
- bug-reporter language: "AP203 material group has no material", "PDM part says steel but no grade", "material classification incomplete".
Sender
deduced — PDM exporter using a generic GROUP scaffold without binding the specific material
Description
An `APPLIED_GROUP_ASSIGNMENT` classifies a part as belonging to a 'material' GROUP, but the GROUP has no associated `MATERIAL_DESIGNATION` or specification reference. The part is tagged as having a material without identifying which material. Bug-reporter language: "material specification missing", "AP203 material grade not declared", "PDM material attribute empty".
Reproducer recipe
`GROUP('material_class',..)` with no `MATERIAL_DESIGNATION` link; `APPLIED_GROUP_ASSIGNMENT(group,(part_PD))`.
Expected kernel behavior
detect material groups missing a designation; warn, drop the assignment, or reject.
Notes
Synonyms: "AP203 material missing", "material spec stub", "PDM material grade absent".
Expected validation
occt=empty/empty gmsh=empty ifc=schema_n/a
Byte assertions
contains(b'CONFIG_CONTROL_DESIGN')contains(b'APPLIED_GROUP_ASSIGNMENT')count_entity_def(b'MATERIAL_DESIGNATION') == 0
Tier-3 assertions
shape_null == True
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes (with defect highlighting)
1ISO-10303-21; 2/* M132: AP203 material-class APPLIED_GROUP_ASSIGNMENT without a material reference */ 3/* DEFECT: GROUP tagged 'material_class' has no MATERIAL_DESIGNATION entity */ 4/* Part claims to be steel alloy but grade/spec is entirely absent from the file */ 5/* Per AP203 §5.6 material GROUP must be accompanied by a MATERIAL_DESIGNATION */ 6/* Byte assertion: contains(b'CONFIG_CONTROL_DESIGN') */ 7/* Byte assertion: contains(b'APPLIED_GROUP_ASSIGNMENT') */ 8/* Byte assertion: count_entity_def(b'MATERIAL_DESIGNATION') == 0 */ 9HEADER; 10FILE_DESCRIPTION(('M132: AP203 material GROUP assignment missing MATERIAL_DESIGNATION'),'2;1'); 11FILE_NAME('M132.stp','2026-06-21T00:00:00',(''),(''),'cad-research-suite','',''); 12/* Byte assertion: contains(b'CONFIG_CONTROL_DESIGN') */ 13FILE_SCHEMA(('CONFIG_CONTROL_DESIGN { 1 0 10303 203 1 0 0 }')); 14ENDSEC; 15DATA; 16#1=APPLICATION_CONTEXT('configuration controlled 3D designs of mechanical parts and assemblies'); 17#2=APPLICATION_PROTOCOL_DEFINITION('international standard', 18 'config_control_design',1994,#1); 19/* Standard unit context (mm) */ 20#10=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 21#11=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 22#12=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 23#13=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(0.001),#10, 24 'distance_accuracy_value','maximum model space distance between geometric entities'); 25#14=(GEOMETRIC_REPRESENTATION_CONTEXT(3) 26 GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#13)) 27 GLOBAL_UNIT_ASSIGNED_CONTEXT((#10,#11,#12)) 28 REPRESENTATION_CONTEXT('ctx','3D')); 29/* Product to which the material group is assigned */ 30#20=PRODUCT('PART-042','Structural Flange','Flange for pipe connection',(#1)); 31#21=PRODUCT_DEFINITION_FORMATION('rev_A','',#20); 32#22=PRODUCT_DEFINITION('design','',#21,PRODUCT_DEFINITION_CONTEXT(#1,'design')); 33/* GROUP entity classifies part as 'material_class' â no MATERIAL_DESIGNATION follows */ 34/* A correct file would have a MATERIAL_DESIGNATION linking this group to a spec */ 35/* e.g. MATERIAL_DESIGNATION('304 stainless steel',$,(#22)) *) <- ABSENT in this file */ 36/* Byte assertion: count_entity_def(b'MATERIAL_DESIGNATION') == 0 */ 37#30=GROUP('material_class','Steel alloy material group â no grade specified'); 38/* Byte assertion: contains(b'APPLIED_GROUP_ASSIGNMENT') */ 39/* DEFECT: assigns material group to part but the group has no MATERIAL_DESIGNATION */ 40/* Receivers cannot determine which steel alloy, heat treatment, or standard applies */ 41#31=APPLIED_GROUP_ASSIGNMENT(#30,(#22)); 42/* GEOMETRIC_CURVE_SET IS the model entity â OCC yields empty */ 43#500=GEOMETRIC_CURVE_SET('ap203-material-group-no-designation', 44 (#20,#21,#22,#30,#31)); 45/* Product chain */ 46#600=APPLICATION_CONTEXT('mechanical design'); 47#601=PRODUCT_CONTEXT('',#600,'mechanical'); 48#602=PRODUCT('M132','M132','M132',(#601)); 49#603=PRODUCT_DEFINITION_FORMATION('','',#602); 50#604=PRODUCT_DEFINITION_CONTEXT(#600,'design'); 51#605=PRODUCT_DEFINITION('','',#603,#604); 52#606=PRODUCT_DEFINITION_SHAPE('','',#605); 53#607=SHAPE_REPRESENTATION('',(#500),#14); 54#608=SHAPE_DEFINITION_REPRESENTATION(#606,#607); 55ENDSEC; 56END-ISO-10303-21;