step-examples/12-8-mixed/M093.stp
Sources
- deduced from ISO 10303-238 §5.7 cutting_tool geometric attribution
Sender
deduced — STEP-NC publisher emitting tool stub before tool library population
Description
A `MACHINING_OPERATION` references a tool by id, and the referenced entity is a bare `MACHINING_TOOL` shell with no associated `CUTTING_TOOL` geometry, no diameter, no flute count. The controller has no way to compute kinematics. Bug-reporter language: "STEP-NC tool has no geometry", "AP238 cutting tool body empty", "tool referenced but undefined".
Reproducer recipe
`MACHINING_TOOL('end_mill_10mm',$,$,$)` referenced by a `MACHINING_OPERATION`, with no associated `CUTTING_TOOL_BODY` / `MILLING_TOOL_DIMENSION` providing the diameter and edges.
Expected kernel behavior
validate tool definitions are geometrically complete before accepting a workplan that references them; reject the workplan or warn that the tool is a placeholder.
Notes
Synonyms: "tool stub", "AP238 missing cutting edges", "tool body geometry absent".
Expected validation
occt=empty/empty gmsh=empty ifc=schema_n/a
Byte assertions
contains(b'AP238_STEP_NC_MIM')contains(b'MACHINING_OPERATION')
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/* M093: AP238 machining_tool referenced without cutting-edge geometry */ 3/* DEFECT: MACHINING_OPERATION references MACHINING_TOOL with all attrs NULL */ 4/* No diameter, no flute count, no cutting geometry â tool is a bare name stub */ 5/* Controller cannot compute cutter compensation or feedrate from stub tool */ 6/* Byte assertion: contains(b'AP238_STEP_NC_MIM') */ 7/* Byte assertion: contains(b'MACHINING_OPERATION') */ 8HEADER; 9FILE_DESCRIPTION(('M093: AP238 MACHINING_TOOL stub without cutting-edge geometry'),'2;1'); 10FILE_NAME('M093.stp','2026-06-21T00:00:00',(''),(''),'cad-research-suite','',''); 11/* Byte assertion: contains(b'AP238_STEP_NC_MIM') */ 12FILE_SCHEMA(('AP238_STEP_NC_MIM { 1 0 10303 238 1 0 0 }')); 13ENDSEC; 14DATA; 15#1=APPLICATION_CONTEXT('step_nc_mim'); 16#2=APPLICATION_PROTOCOL_DEFINITION('international standard', 17 'ap238_step_nc_mim',2007,#1); 18/* Standard unit context â mm */ 19#10=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 20#11=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 21#12=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 22#13=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(0.001),#10, 23 'distance_accuracy_value','maximum model space distance between geometric entities'); 24#14=(GEOMETRIC_REPRESENTATION_CONTEXT(3) 25 GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#13)) 26 GLOBAL_UNIT_ASSIGNED_CONTEXT((#10,#11,#12)) 27 REPRESENTATION_CONTEXT('nc','3D')); 28/* Target machined feature for the slot operation */ 29#50=MACHINED_FEATURE('slot_a',$,$,$,$,$); 30/* Byte assertion: contains(b'MACHINING_OPERATION') */ 31/* DEFECT: MACHINING_TOOL with all optional attributes NULL â bare name stub */ 32/* No cutting_edges, no CUTTING_TOOL_BODY, no MILLING_TOOL_DIMENSION */ 33/* Tool name 'end_mill_10mm' implies 10mm diameter â but no geometry confirms it */ 34#60=MACHINING_TOOL('end_mill_10mm',$,$,$); 35/* MACHINING_OPERATION references the stub tool #60 */ 36/* Controller must know tool diameter for cutter compensation â impossible with stub */ 37#70=MACHINING_OPERATION('mill_slot',#60,$,$,$,$,$,$,#50,$,$); 38/* Workingstep and workplan wrapping the operation */ 39#80=MACHINING_WORKINGSTEP('slot_step',#50,#70,$); 40#90=WORKPLAN('main',(#80),$,$,$); 41/* GEOMETRIC_CURVE_SET IS the model entity â OCC yields empty */ 42#300=GEOMETRIC_CURVE_SET('ap238-machining-tool-stub-no-cutting-edge-geometry', 43 (#50,#60,#70,#80,#90)); 44/* Product chain */ 45#400=APPLICATION_CONTEXT('mechanical design'); 46#401=PRODUCT_CONTEXT('',#400,'mechanical'); 47#402=PRODUCT('M093','M093','M093',(#401)); 48#403=PRODUCT_DEFINITION_FORMATION('','',#402); 49#404=PRODUCT_DEFINITION_CONTEXT(#400,'design'); 50#405=PRODUCT_DEFINITION('','',#403,#404); 51#406=PRODUCT_DEFINITION_SHAPE('','',#405); 52#407=SHAPE_REPRESENTATION('',(#300),#14); 53#408=SHAPE_DEFINITION_REPRESENTATION(#406,#407); 54ENDSEC; 55END-ISO-10303-21;