step-examples/12-8-mixed/M071.stp
Sources
- deduced from AP238 §4.5 process_aspect referencing rules
Sender
deduced — STEP-NC publisher with broken downstream stitching
Description
A STEP-NC file's `MACHINING_OPERATION` cites a `PROCESS_ASPECT` by id, but the referenced entity is missing or is a different schema type (e.g. a `CARTESIAN_POINT` instead). Bug-reporter language: "STEP-NC dangling reference", "AP238 process_aspect not found", "machining operation has no feature to act on".
Reproducer recipe
`MACHINING_OPERATION('drill_hole_a',$,$,$,$,#200)` where `#200` is declared as `CARTESIAN_POINT(..)`, not a `PROCESS_ASPECT` subtype.
Expected kernel behavior
detect the type mismatch / unresolved reference; reject the operation as malformed or warn and continue with the operation treated as having no associated feature.
Notes
Synonyms: "AP238 broken reference", "STEP-NC missing process aspect", "machining_operation has no feature", "STEP-NC dangling reference".
Expected validation
occt=shape(1)/shape(1) gmsh=shape(1) ifc=schema_n/a
Byte assertions
contains(b'AP238_STEP_NC_MIM')contains(b'MACHINING_OPERATION')contains(b'WORKPLAN')
Tier-3 assertions
shape_null == Falsen_vertices_total == 1
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes (with defect highlighting)
1ISO-10303-21; 2/* M071: AP238 MACHINING_OPERATION references CARTESIAN_POINT instead of PROCESS_ASPECT */ 3/* DEFECT: type mismatch â #200 is CARTESIAN_POINT, not a PROCESS_ASPECT subtype */ 4/* Byte assertion: contains(b'AP238_STEP_NC_MIM') */ 5/* Byte assertion: contains(b'MACHINING_OPERATION') */ 6/* Byte assertion: contains(b'WORKPLAN') */ 7HEADER; 8FILE_DESCRIPTION(('M071: AP238 machining_operation references nonexistent process_aspect'),'2;1'); 9FILE_NAME('M071.stp','2026-06-21T00:00:00',(''),(''),'cad-research-suite','',''); 10/* Byte assertion: contains(b'AP238_STEP_NC_MIM') */ 11FILE_SCHEMA(('AP238_STEP_NC_MIM { 1 0 10303 238 3 1 1 1 }')); 12ENDSEC; 13DATA; 14/* Standard unit context */ 15#10=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 16#11=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 17#12=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 18#13=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(0.001),#10, 19 'distance_accuracy_value','maximum model space distance between geometric entities'); 20#14=(GEOMETRIC_REPRESENTATION_CONTEXT(3) 21 GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#13)) 22 GLOBAL_UNIT_ASSIGNED_CONTEXT((#10,#11,#12)) 23 REPRESENTATION_CONTEXT('ctx','3D')); 24/* GEOMETRIC_CURVE_SET IS the model entity â OCC yields empty */ 25#20=GEOMETRIC_CURVE_SET('ap238-machining-op-dangling-process-aspect', 26 (#200)); 27/* Byte assertion: contains(b'WORKPLAN') */ 28/* AP238 WORKPLAN â top-level program structure */ 29#50=WORKPLAN('main_program','AP238 STEP-NC workplan',(),$,(#51)); 30/* AP238 MACHINING_WORKINGSTEP â references the operation */ 31#51=MACHINING_WORKINGSTEP('drill_step','drilling workingstep',#52,$,$); 32/* Byte assertion: contains(b'MACHINING_OPERATION') */ 33/* MACHINING_OPERATION â last attribute is process_aspect reference: #200 */ 34/* #200 is a CARTESIAN_POINT, not a PROCESS_ASPECT subtype â the defect */ 35#52=MACHINING_OPERATION('drill_hole_a',$,$,$,$,#200); 36/* Product chain */ 37#100=APPLICATION_CONTEXT('mechanical design'); 38#101=PRODUCT_CONTEXT('',#100,'mechanical'); 39#102=PRODUCT('M071','M071','M071',(#101)); 40#103=PRODUCT_DEFINITION_FORMATION('','',#102); 41#104=PRODUCT_DEFINITION_CONTEXT(#100,'design'); 42#105=PRODUCT_DEFINITION('','',#103,#104); 43#106=PRODUCT_DEFINITION_SHAPE('','',#105); 44#107=SHAPE_REPRESENTATION('',(#20),#14); 45#108=SHAPE_DEFINITION_REPRESENTATION(#106,#107); 46/* #200 = CARTESIAN_POINT wrongly referenced as process_aspect by MACHINING_OPERATION */ 47#200=CARTESIAN_POINT('drill_center',(25.,25.,0.)); 48ENDSEC; 49END-ISO-10303-21;